push down automata code in c

push down automata code in c

Page 1 of 1

3 Replies - 7999 Views - Last Post: 10 January 2010 - 01:02 PM Rate Topic: -----

#1 ritesh kumar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-January 10

push down automata code in c

Post icon  Posted 10 January 2010 - 12:18 PM

Dear sir/mam,


I am a student of mca , & want to get push down automata code in c.

pls help me sir because it am going to make a project on push down automata


Thank you sir!
Is This A Good Question/Topic? 0
  • +

Replies To: push down automata code in c

#2 Anarion  Icon User is offline

  • The Persian Coder
  • member icon

Reputation: 282
  • View blog
  • Posts: 1,456
  • Joined: 16-May 09

Re: push down automata code in c

Posted 10 January 2010 - 12:20 PM

Please use proper English and explain your problem, also show some effort about solving the problem :)

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: push down automata code in c

Posted 10 January 2010 - 12:22 PM

What do you mean by

Quote

want to get push down automata code in c.
exactly?
Was This Post Helpful? 0
  • +
  • -

#4 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: push down automata code in c

Posted 10 January 2010 - 01:02 PM

PDAs are actually not hard to code at all... I realize the theory looks very complicated but really if you just look at the pictures its really just a finite state machine with a stack...

So FSMs are usually create by either creating a long if-else-if-else block with the different states, OR by using a table. Lastly by using switch-case blocks to create a hybred of the two. This latter method is what most code generators uses when they create FSMs -- humans usually lean more towards the if-else-if-else blocks. (or in OOP the State Pattern).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1