Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Regular grammar from CFG?
Lorin Netsch wrote:
> Can anyone tell me how to determine if a given CFG can be represented
> as a regular grammar?
>
> If so, what method can be used to generate the right-linear grammar?

Whether an arbitrary CFG generates a regular language is undecidable.
(Theorem 4.2.2 in Seymour Ginsburg's "The Mathematical Theory of
Context-Free Languages").

The following was listed as an open problem by Ginsburg (in 1966); I'm
not sure if it's still open:

"Let G be an arbitrary [context-free] grammar.  Suppose it is known that
L(G) is regular.  Is it solvable to find a right-linear grammar G' such
that L(G) = L(G')?"

Ben Brosgol
brosgol at gnat.com

Report this thread to moderator Post Follow-up to this message
Old Post
Ben Brosgol
09-08-04 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compilers archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:08 PM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.