Forum     

Go Back   Digit Technology Discussion Forum > Education and Career Guide > Education
Register FAQ Calendar Mark Forums Read

Education Share your experiences in your classrooms, exams, colleges. Share your learnings, moments of joy and 'wish i had scored 2 more marks' moments. Help each other learn more...


Reply
 
LinkBack Thread Tools Display Modes
Old 20-11-2011, 07:59 PM   #1 (permalink)
Mmmph!!!
 
doomgiver's Avatar
 
Join Date: Nov 2010
Location: Mmmphhmph Mmphph
Posts: 1,408
Default some homework help (automata/regular expressions)




this is the non finite automata

the one state at the top with triangle is the start state
the one on the right bottom is the end state.

i want to describe it with a regular expression.


solutions i thought of :

abc((dbc)*+(febc)*)fg

it will go from a-b-c, then it can branch as many times as it wants in d-b-c, or it can branch f-e-b-c, then it ends as f-g

other two possible :

abc((dbc)+(febc))*fg
abc((d+fe)*bc)fg


()* shows that it is repeated many times , + means OR.

any help?
__________________
Mmmphh-mphhhh-mmphh mhh!!!

Steam : doomgiver
doomgiver is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 20-11-2011, 08:56 PM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Oct 2011
Posts: 20
Default Re: some homework help (automata/regular expressions)

solution: a(bcd+bcef)*bcfg

why your 1st solution is wrong: only dbc loop or febc loop, not both.

why your 2nd solution is wrong: messed up ordering in the loop. even if you correct the order, it wont end with bcfg. add bc before the end, not at start.

why your 3rd solution is wrong: loops of only d or fe are also possible in that solution.

Last edited by rhlravi; 22-11-2011 at 02:44 PM.
rhlravi is offline   Reply With Quote
Old 13-12-2011, 02:01 PM   #3 (permalink)
127.0.0.1
 
mitraark's Avatar
 
Join Date: Nov 2010
Location: Kolkata / Durgapur
Posts: 767
Default Re: some homework help (automata/regular expressions)

a(bcd+bcfe)*bcfg , very well done rhlravi !

WHen I looked at the program the first solution that came to my mind was

a (bcd)*+(bcf(e+g))* --> WRONG

Automata is an AWESOME Subject , 1st three months of the semester , i didn;t understand anything , and when i finally began to get it , i liked it more
__________________
Intel i5 760 || Gigabyte H55 || Corsair 4GB 1333MHz Value || XFX HD5670 1GB
WD 2TB Green + Seagate 5900RPM 2 TB + Seagate Freeagent 1 TB x2
Corsair CX400 || Zebronics Bijli || Samsung P2350 23.5" || Altec Lansing VS2621
My Speedtest :D
mitraark is offline   Reply With Quote
Old 13-12-2011, 06:08 PM   #4 (permalink)
Neo
Alpha Geek
 
Neo's Avatar
 
Join Date: Jun 2011
Location: Near my Computer.
Posts: 507
Default Re: some homework help (automata/regular expressions)

what the hell is this??
Neo is offline   Reply With Quote
Old 13-12-2011, 06:55 PM   #5 (permalink)
Mmmph!!!
 
doomgiver's Avatar
 
Join Date: Nov 2010
Location: Mmmphhmph Mmphph
Posts: 1,408
Default Re: some homework help (automata/regular expressions)

ok, thanks
__________________
Mmmphh-mphhhh-mmphh mhh!!!

Steam : doomgiver
doomgiver is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by icebags
- by bhaskar
- by Soumik

Advertisement




All times are GMT +5.5. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2