{"title":"The CFG Complexity of Singleton Sets","authors":"Lance Fortnow, William Gasarch","doi":"arxiv-2405.20026","DOIUrl":null,"url":null,"abstract":"Let G be a context-free grammar (CFG) in Chomsky normal form. We take the\nnumber of rules in G to be the size of G. We also assume all CFGs are in\nChomsky normal form. We consider the question of, given a string w of length n, what is the\nsmallest CFG such that L(G)={w}? We show the following: 1) For all w, |w|=n, there is a CFG of size with O(n/log n) rules, such that\nL(G)={w}. 2) There exists a string w, |w|=n, such that every CFG G with L(G)={w} is of\nsize Omega(n/log n). We give two proofs of: one nonconstructive, the other\nconstructive.","PeriodicalId":501124,"journal":{"name":"arXiv - CS - Formal Languages and Automata Theory","volume":"103 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Formal Languages and Automata Theory","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2405.20026","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Let G be a context-free grammar (CFG) in Chomsky normal form. We take the
number of rules in G to be the size of G. We also assume all CFGs are in
Chomsky normal form. We consider the question of, given a string w of length n, what is the
smallest CFG such that L(G)={w}? We show the following: 1) For all w, |w|=n, there is a CFG of size with O(n/log n) rules, such that
L(G)={w}. 2) There exists a string w, |w|=n, such that every CFG G with L(G)={w} is of
size Omega(n/log n). We give two proofs of: one nonconstructive, the other
constructive.