# S.O.S. Mathematics CyberBoard

Your Resource for mathematics help on the web!
 It is currently Fri, 24 May 2013 21:20:22 UTC

 All times are UTC [ DST ]

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Contex free grammarPosted: Thu, 2 Jun 2011 08:08:43 UTC
 S.O.S. Newbie

Joined: Wed, 1 Jun 2011 23:21:54 UTC
Posts: 2
Construct Contex free grammar that recognize the language :

Can someone help me

Top

 Post subject: Re: Contex free grammarPosted: Thu, 2 Jun 2011 08:21:12 UTC
 Moderator

Joined: Mon, 29 Dec 2008 17:49:32 UTC
Posts: 6009
Location: 127.0.0.1, ::1 (avatar courtesy of UDN)
counter wrote:
Construct Contex free grammar that recognize the language :

Can someone help me

Can you construct a rule for ? Now stick the at the end.

_________________

Top

 Post subject: Posted: Thu, 2 Jun 2011 08:43:54 UTC
 S.O.S. Newbie

Joined: Wed, 1 Jun 2011 23:21:54 UTC
Posts: 2
Something like this - >

Top

 Post subject: Posted: Thu, 2 Jun 2011 09:37:04 UTC
 Moderator

Joined: Mon, 29 Dec 2008 17:49:32 UTC
Posts: 6009
Location: 127.0.0.1, ::1 (avatar courtesy of UDN)
counter wrote:
Something like this - >

That isn't exactly what we want.

OK, so generates all that we want. Unfortunately that isn't the whole story, so we can't really use the letter S. Switch that to T, say:

Now can you cook up a rule for ? Say that is the language .

Finally, glue these pieces together, which forms the entire language we want: .

So the end result is three rules: one for how to get T, one for how to get U, and one rule for S.

(By the way, it is context-free grammar)

_________________

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 4 posts ]

 All times are UTC [ DST ]

#### Who is online

Users browsing this forum: No registered users

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forum

Search for:
 Jump to:  Select a forum ------------------ High School and College Mathematics    Algebra    Geometry and Trigonometry    Calculus    Matrix Algebra    Differential Equations    Probability and Statistics    Proposed Problems Applications    Physics, Chemistry, Engineering, etc.    Computer Science    Math for Business and Economics Advanced Mathematics    Foundations    Algebra and Number Theory    Analysis and Topology    Applied Mathematics    Other Topics in Advanced Mathematics Other Topics    Administrator Announcements    Comments and Suggestions for S.O.S. Math    Posting Math Formulas with LaTeX    Miscellaneous
Privacy Statement | Search the "old" CyberBoard

users online during the last hour