1 Replies - 11855 Views - Last Post: 28 July 2010 - 10:39 AM

#1 mrsenim   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 32
  • Joined: 28-January 10

CFG To CNF

Posted 28 July 2010 - 06:13 AM

Confused how to convert following CFG into CNF.

S → aY | Ybb | Y
X → Λ | a
Y → aXY | bb | XXa

What will be above CFG in the form nonterminal → string of two nonterminals or nonterminal → one terminal.

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: CFG To CNF

#2 mostyfriedman   User is offline

  • The Algorithmi
  • member icon

Reputation: 729
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: CFG To CNF

Posted 28 July 2010 - 10:39 AM

there's nothing tricky about converting a context free grammar to a chomsky normal form, if you know the algorithm, you just blindly apply it and you can't go wrong with the result. just google how to do that and look at some examples, or just use sipser's book, everything you need is there.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1