Fast enumeration of words generated by Dyck grammars

被引:1
|
作者
Medvedeva, Yu S. [1 ]
机构
[1] Russian Acad Sci, Inst Computat Technol, Novosibirsk, Russia
关键词
ranking and unranking of words; fast enumeration and denumeration of words; enumerative encoding; Dyck language;
D O I
10.1134/S0001434614070062
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
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 Schonhage-Strassen multiplication and division algorithmis used. The well-knownmethods applied earlier possess complexityO(n) per one symbol of enumerated words. The construction of the proposed algorithm is based on the Ryabko method.
引用
收藏
页码:68 / 83
页数:16
相关论文
共 50 条
  • [1] Fast enumeration of words generated by Dyck grammars
    Yu. S. Medvedeva
    Mathematical Notes, 2014, 96 : 68 - 83
  • [2] On the enumeration and generation of generalized Dyck words
    Duchon, P
    DISCRETE MATHEMATICS, 2000, 225 (1-3) : 121 - 135
  • [3] On rational Dyck paths and the enumeration of factor-free Dyck words
    Birmajer, Daniel
    Gil, Juan B.
    Weiner, Michael D.
    DISCRETE APPLIED MATHEMATICS, 2018, 244 : 36 - 43
  • [4] Dyck path enumeration
    Discrete Math, 1-3 (167-202):
  • [5] Dyck path enumeration
    Deutsch, E
    DISCRETE MATHEMATICS, 1999, 204 (1-3) : 167 - 202
  • [6] Fast Enumeration of Run-Length-Limited Words
    Medvedeva, Yulia
    Ryabko, Boris
    2009 IEEE INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY, VOLS 1- 4, 2009, : 640 - +
  • [7] On Enumeration of Dyck Paths with Colored Hills
    Janjic, Milan
    JOURNAL OF INTEGER SEQUENCES, 2018, 21 (09)
  • [8] Enumeration of Dyck Paths with Air Pockets
    Baril, Jean-Luc
    Kirgizov, Sergey
    Marechal, Remi
    Vajnovszki, Vincent
    JOURNAL OF INTEGER SEQUENCES, 2023, 26 (03)
  • [9] Some permutations on Dyck words
    Barnabei, Marilena
    Bonetti, Flavio
    Castronuovo, Niccolo
    Cori, Robert
    THEORETICAL COMPUTER SCIENCE, 2016, 635 : 51 - 63
  • [10] On doubly symmetric Dyck words
    Cori, Robert
    Frosini, Andrea
    Palma, Giulia
    Pergola, Elisa
    Rinaldi, Simone
    THEORETICAL COMPUTER SCIENCE, 2021, 896 (896) : 79 - 97