Awesome q2a theme
0 votes

Someone plz solve the doubt for this question

Why ans is not 2?

in Compiler Design by (817 points) | 29 views

Why would it be 2 ?

Standard definition of GOTO(I, X) for LR(0) (Aho-Ullman) is: 

Based on your reasoning, how many entries should the GOTO in this example have ?

Question is clearly asking what is the return (output) of the standard GOTO function.
Question is NOT asking you about the goto/action entries of hte LR(0) parse table.

If you are familiar with the standard texts - you would recognize the GOTO (I, X) syntax.



thank you.

Can u then plz. tell me, For same question, what is number of items for 'Action'??

1 Answer

0 votes
why di you think answer should be 2 as I0 on < will produce S-> <.L>   due to which we will take closure of L which will produce L-> .L,S/.S and due to  .S we will take closure of S which will further produce S-> .<L>/.id . Hence total 5 items.
by (68 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users 2020 Aug 10 - 16
  1. Arkaprava

    404 Points

  2. jayeshasawa001

    198 Points

  3. SarathBaswa

    126 Points

  4. Ashutosh777

    67 Points

  5. toxicdesire

    20 Points

  6. Nilabja Sarkar

    12 Points

  7. premu

    10 Points

  8. iarnav

    7 Points

  9. Jhumpa_Sarma

    6 Points

  10. Patel0967

    6 Points

Weekly Top User (excluding moderators) will get free access to GATE Overflow Test Series for GATE 2021
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Aug 2020
  1. Arkaprava

    404 Points

  2. jayeshasawa001

    203 Points

  3. Mellophi

    156 Points

  4. Ashutosh777

    143 Points

  5. SarathBaswa

    126 Points

  6. anurag sharma

    49 Points

  7. toxicdesire

    20 Points

  8. shashankrustagi2021

    16 Points

  9. premu

    16 Points

  10. Kushagra गुप्ता

    15 Points

7,769 questions
1,977 answers
95,111 users