home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 950 of 2,753   
   Chris F Clark to Johann Neugebauer   
   Re: Question regarding complexity of gra   
   06 May 07 16:11:02   
   
   From: cfc@shell01.TheWorld.com   
      
   Johann Neugebauer  writes:   
      
   > The parser works pretty fine but as I do not understand the   
   > code that is produced by Lex/Yacc I wonder what runtime complexity this   
   > parser has? Personally, I believe that it is O(n) but I am not quite   
   > sure about that.   
      
   All LL(k) and LR(k) parsers have O(n) complexity.  It is built into   
   the model.  It is one of the attractions of these methodologies.  PEG   
   parsers have that same property (provided one uses the memoizing   
   implementation).  GLR, backtracking, predicated, and Earley parsers do   
   not have that property.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca