CS606 Assignment 3 Solution and Discussion
-
@Nabeel-Chaudhary Solution idea posted so please follow these step as required assignment with minimum changes.
@zareen This does not make any sense. I also downloaded this type of sketch from internet. Its so confusing. The thing is our assignment is gone.
-
plz file send kr dy
@ramsha-kanwal File hai hi nahi in k pas
-
bta dy file hai k ni plz
-
allah hi puchy ga
-
allah hi puchy ga
@ramsha-kanwal Give me your email or something i will send you a file
-
@ramsha-kanwal Give me your email or something i will send you a file
@Nabeel-Chaudhary bhai agr ap k pas file ha to send kr do plz
-
@ramsha-kanwal Give me your email or something i will send you a file
@Nabeel-Chaudhary plz send me solution file at [email protected]
-
mery pas file hai pr mujhy idhr uplod ni krni aa rahi
-
@ramsha-kanwal Give me your email or something i will send you a file
-
@ramsha-kanwal Give me your email or something i will send you a file
@Nabeel-Chaudhary w8 kru k so jau?
-
@ramsha-kanwal Give me your email or something i will send you a file
@Nabeel-Chaudhary btay?
-
ab to so hi jana chaye fr
-
mery pas file hai pr mujhy idhr uplod ni krni aa rahi
@ramsha-kanwal
Simple reply the topic and upload file

-
The FIRST of a sentential form is the set of terminal symbols that lead any sentential from derived from the very first sentential form. In this particular case X and Y only derive the empty string and as a result the empty string is the FIRST set of both non-terminal symbols X and Y. The FIRST of S, however, includes “a” as in the first production once can derive a sentential form that starts with an “a” given that X can be replaced by the empty string. X similar reasoning allows you to include “b” in the FIRST(S).
summary: FIRST(X) = {e}, FIRST(Y) = {e}, FIRST(S) = {a, b}The FOLLOW set of a non-terminal symbol is the set of terminals that can appear after that non-terminal symbol in any sentential form derived from the grammar’s start symbol. By definition the follow of the start symbol will automatically include the $ sign which represents the end of the input string. In this particular case by looking at the productions of S one can determine right away that the follow of X includes the terminal “a” and “b” and that the FOLLOW of Y includes the terminal “b”. Given that the non-terminal S does not appear in any productions, not even in its own productions, the FOLLOW of S is only $.
summary: FOLLOW(S) = {$}, FOLLOW(X) = {a, b}, FOLLOW(Y) = {b}.b) YES, because the intersection of the FIRST for every non-terminal symbol in empty. This leads to the parsing table for this LL method as indicated below. As there is no conflict in entry then grammar is clearly LL (1).
[23/01, 21:33] Waqas Ahmad: a b $
S S→XaXb S → Yb
A X→ε X→ε
B Y→ε
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login