335 views
0 votes
0 votes

1 Answer

1 votes
1 votes

S->abS|ScS|d|c

First of S:{a,d,c}

Follow of S:{$,c}

The follow of the starting symbol always contains "$".

The follow of a symbol is what would appear after that symbol if that symbol appears in the right hand side of the production. So in this case c comes after S so it would be in the follow of S and $ has to be there as S is the starting symbol. I hope u got it.Now for the definition of first and follows:

https://www.cs.uaf.edu/~cs331/notes/FirstFollow.pdf

Related questions

0 votes
0 votes
1 answer
1
Abhishek3301 asked Feb 6
9 views
Number of states in a minimal deterministic finite automata that accepts the language L = {(a + b) a* b*} What should be the answer to this question?
0 votes
0 votes
1 answer
3
0 votes
0 votes
2 answers
4
jugnu1337 asked Sep 3, 2023
344 views
FIND the no of 2 state dfa with the designated initial state possible over {a,b,c} which accept empty language is equal to