|
This article is cited in 1 scientific paper (total in 1 paper)
Fast Enumeration of Words Generated by Dyck Grammars
Yu. S. Medvedeva Institute of Computing Technologies, Siberian Branch of the Russian Academy of Sciences, Novosibirsk
Abstract:
The problem of enumerating and denumerating words generated by Dyck grammars arises in the work of compilers for high-level programming languages and a number of other applications. The present paper proposes an algorithm for the fast enumeration and denumeration of words of Dyck languages; the complexity of this algorithm per one symbol of enumerated words is $O(\log^3 n \log \log n)$ bit operations, provided that the Schönhage–Strassen multiplication and division algorithm is used. The well-known methods applied earlier possess complexity $O(n)$ per one symbol of enumerated words. The construction of the proposed algorithm is based on the Ryabko method.
Keywords:
ranking and unranking of words, fast enumeration and denumeration of words, enumerative encoding, Dyck language.
Received: 15.08.2013 Revised: 25.12.2013
Citation:
Yu. S. Medvedeva, “Fast Enumeration of Words Generated by Dyck Grammars”, Mat. Zametki, 96:1 (2014), 51–69; Math. Notes, 96:1 (2014), 68–83
Linking options:
https://www.mathnet.ru/eng/mzm10398https://doi.org/10.4213/mzm10398 https://www.mathnet.ru/eng/mzm/v96/i1/p51
|
Statistics & downloads: |
Abstract page: | 312 | Full-text PDF : | 174 | References: | 53 | First page: | 28 |
|