Fast enumeration of words generated by Dyck grammars

被引:0
|
作者
Yu. S. Medvedeva
机构
[1] Russian Academy of Sciences,Institute of Computational Technologies
来源
Mathematical Notes | 2014年 / 96卷
关键词
ranking and unranking of words; fast enumeration and denumeration of words; enumerative encoding; Dyck language;
D O I
暂无
中图分类号
学科分类号
摘要
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(log3n log log n) bit operations, provided that the Schönhage-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
页数:15
相关论文
共 50 条
  • [21] Automata and Grammars for Data Words
    Seki, Hiroyuki
    IMPLEMENTATION AND APPLICATION OF AUTOMATA, CIAA 2024, 2024, 15015 : 3 - 16
  • [22] Dyck Words, Lattice Paths, and Abelian Borders
    Blanchet-Sadri, Francine
    Chen, Kun
    Hawes, Kenneth
    INTERNATIONAL JOURNAL OF FOUNDATIONS OF COMPUTER SCIENCE, 2022, 33 (03N04) : 203 - 226
  • [23] Row-Column Combination of Dyck Words
    Reghizzi, Stefano Crespi
    Restivo, Antonio
    San Pietro, Pierluigi
    SOFSEM 2024: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2024, 14519 : 139 - 153
  • [24] Dyck Words, Lattice Paths, and Abelian Borders
    Blanchet-Sadri, F.
    Chen, Kun
    Hawes, Kenneth
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2017, (252): : 56 - 70
  • [25] Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars
    Wen, Kaiyue
    Li, Yuchen
    Liu, Bingbin
    Risteski, Andrej
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [26] Enumeration of area-weighted Dyck paths with restricted height
    Owczarek, A. L.
    Prellberg, T.
    AUSTRALASIAN JOURNAL OF COMBINATORICS, 2012, 54 : 13 - 18
  • [27] On Languages Generated by Signed Grammars
    Egccioglu, Omer
    Nagy, Benedek
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2023, 388 : 28 - 37
  • [28] ENUMERATION OF IRREDUCIBLE BINARY WORDS
    KOBAYASHI, Y
    DISCRETE APPLIED MATHEMATICS, 1988, 20 (03) : 221 - 232
  • [29] ENUMERATION OF WORDS BY THEIR NUMBER OF MISTAKES
    ZEILBERGER, D
    DISCRETE MATHEMATICS, 1981, 34 (01) : 89 - 91
  • [30] Enumeration and structure of trapezoidal words
    Bucci, Michelangelo
    De Luca, Alessandro
    Fici, Gabriele
    THEORETICAL COMPUTER SCIENCE, 2013, 468 : 12 - 22