On the Density of Regular and Context-Free Languages

被引:0
|
作者
Hartwig, Michael [1 ]
机构
[1] Multimedia Univ Cyberjaya, Fac Informat Technol, Cyberjaya, Malaysia
来源
COMPUTING AND COMBINATORICS | 2010年 / 6196卷
关键词
context-free languages; regular languages; density;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The density of a language is defined as the function d(L)(n) = vertical bar L n L boolean AND Sigma(n)vertical bar and counts the number of words of a certain length accepted by L. The study of the density of regular and context-free languages has attracted some attention culminating in the fact that such languages are either sparse, when the density can be bounded by a polynomial, or dense otherwise. We show that for all nonambiguous context-free languages the number of accepted words of a given length n can also be computed recursively using a finite combination of the number of accepted words smaller than n, or d(L) = Sigma(k)(j=1) u(j)d(L)(n - j). This extends an old result by Chomsky and provides us with a more expressive description and new insights into possible applications of the density function for such languages as well as possible characterizations of the density of higher languages.
引用
收藏
页码:318 / 327
页数:10
相关论文
共 50 条
  • [1] ON THE DENSITY OF REGULAR AND CONTEXT-FREE LANGUAGES
    Hartwig, Michael
    DISCRETE MATHEMATICS ALGORITHMS AND APPLICATIONS, 2010, 2 (04) : 505 - 514
  • [2] Regular patterns, regular languages and context-free languages
    Jain, Sanjay
    Ong, Yuh Shin
    Stephan, Frank
    INFORMATION PROCESSING LETTERS, 2010, 110 (24) : 1114 - 1119
  • [3] Directed Regular and Context-Free Languages
    Ganardi, Moses
    Saglam, Irmak
    Zetzsche, Georg
    41ST INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE, STACS 2024, 2024, 289
  • [4] On the Intersection of Context-Free and Regular Languages
    Pasti, Clemente
    Opedal, Andreas
    Pimentel, Tiago
    Vieira, Tim
    Eisner, Jason
    Cotterell, Ryan
    17TH CONFERENCE OF THE EUROPEAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, EACL 2023, 2023, : 737 - 749
  • [5] Regular description of context-free graph languages
    Engelfriet, J
    vanOostrom, V
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1996, 53 (03) : 556 - 574
  • [6] Boundary sets of regular and context-free languages
    Holzer, Markus
    Jakobi, Sebastian
    THEORETICAL COMPUTER SCIENCE, 2016, 610 : 59 - 77
  • [7] Boundary Sets of Regular and Context-Free Languages
    Holzer, Markus
    Jakobi, Sebastian
    DESCRIPTIONAL COMPLEXITY OF FORMAL SYSTEMS, DCFS 2014, 2014, 8614 : 162 - 173
  • [8] On regular realizability problems for context-free languages
    M. N. Vyalyi
    A. A. Rubtsov
    Problems of Information Transmission, 2015, 51 : 349 - 360
  • [9] Regular expressions for muller context-free languages
    Gelle K.
    Ivan S.
    Gelle, Kitti (kgelle@inf.u-szeged.hu), 1600, University of Szeged, Institute of Informatics (23): : 349 - 369
  • [10] On regular realizability problems for context-free languages
    Vyalyi, M. N.
    Rubtsov, A. A.
    PROBLEMS OF INFORMATION TRANSMISSION, 2015, 51 (04) : 349 - 360