Results 1 to 8 of 8

Thread: Question 49

  1. #1
    Trying to make mom and pop proud
    Join Date
    Sep 2003
    Posts
    15
    Rep Power
    10


    Good post? Yes | No
    I have never seen a DFA that uses notation _in_ the states like this question does. I am having a hard time understanding how to find the correct answer. Does anyone know of a book or website where I can see questions like this?

    thanks

  2. #2
    An Urch Guru Pundit Swami Sage
    Join Date
    Jul 2003
    Location
    Brazil
    Posts
    1,360
    Rep Power
    15


    Good post? Yes | No
    It is indeed a bit strange.

    When I faced that problem, I solved it through elimination to be frank.

    I know that the final/accepting states have to be the bottom ones, since they are the only ones who end with a DOT.

    So, (A) would end on the upper right state (big one), which has no production with a DOT at the end; (B) would be the same thing; (C) cannot be the one, 'cause there's no production from the bottom left state that accepts another b; and (E) is unlikely cause the start state is not a final/accepting state.

    So the answer is (D).

    I'm sure somebody can explain it better than me.

    Wood

  3. #3
    Trying to make mom and pop proud
    Join Date
    Sep 2003
    Posts
    15
    Rep Power
    10


    Good post? Yes | No
    i think that this is about as good an explanation as there is.

    thanks!

  4. #4
    Eager!
    Join Date
    Oct 2003
    Location
    India
    Posts
    35
    Rep Power
    10


    Good post? Yes | No
    Wood,
    great work!!!

    Hey this parsing automaton is very similar to LR parsing automaton that appears in Aho,Ullman Sethi (Compilers)

    Keep going great guns....

    Cheers'
    Laks

  5. #5
    Here I am !! The_Wonderful_Vipul's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    165
    Rep Power
    0


    Good post? Yes | No
    right Laks ( parser for LR grammar),

    just did it today in class .... lemme put it in a better way

    the place where the dot is indicates the point you r at .

    e.g. while parsing abcd, a.bcd means that you have seen an a and now r expecting a b in the input. similarly ab.cd means that you have seen ab n are expecting c to parse the string correctly.

    Thus, when you see abcd. , means you have seen the string completely and hence, the expression is parsed correctly i.e. you have reached a final state.

    therefore, X1X2X3X4.... Xn take it from A-> .& to A->&. if A=>..... &.

    hth
    Vipul.

  6. #6
    Trying to make mom and pop proud
    Join Date
    Oct 2003
    Posts
    19
    Rep Power
    10


    Good post? Yes | No
    So wood is it always a true statement that if something ends with a dot it is the end statement. Because if that is true then you are right this is an easy one too just disqualify answers and yes D would be the only one that goes to a dot.

    Thanks

  7. #7
    An Urch Guru Pundit Swami Sage
    Join Date
    Oct 2003
    Location
    USA
    Posts
    508
    Rep Power
    12


    Good post? Yes | No
    Maybe you guys want to try this one out:

    http://www.TestMagic.com/forum/topic.asp?TOPIC_ID=8363

  8. #8
    Trying to make mom and pop proud
    Join Date
    Oct 2003
    Location
    USA
    Posts
    17
    Rep Power
    10


    Good post? Yes | No
    The book "Introduction to Automata Theory, Langauages and Computation" by Hopcroft and Ulman talks about this to some extent in chapter 10. Look for the subsection on LR(0) grammars.

    Tait

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Math Problem Solving Question-Probability Question
    By nydhoom in forum GMAT Problem Solving
    Replies: 3
    Last Post: 10-18-2011, 05:48 AM
  2. Replies: 3
    Last Post: 01-06-2011, 05:17 PM
  3. Small question about Listening question of Toefl ibt
    By cielbleu in forum TOEFL Listening
    Replies: 3
    Last Post: 08-03-2008, 07:08 PM
  4. Mixtures question from GMAT PREP - 700+ level question -Need Help
    By adiknish in forum GMAT Data Sufficiency
    Replies: 4
    Last Post: 07-14-2006, 02:43 PM
  5. height/time question: Real gmat question?
    By zzhop in forum GMAT Problem Solving
    Replies: 8
    Last Post: 01-17-2006, 05:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO ©2010, Crawlability, Inc.