follow(A)={a,b}
follow(B)=follow(S)=follow(A)={a,b}

follow(A) is pretty straight forward
follow(B) is this because since it can be seen that it is equal to
follow(S), as follow B in the grammar does not have anything so hence it is
equal to the production that resulted it and hence follow(S) and so on
similarly it is equal to follow(A).

On Wed, Jan 23, 2013 at 12:59 AM, rahul sharma <rahul23111...@gmail.com>wrote:

> S->aAbB\bAaB\e
>
>
> A->S
> B->s
>
>
>
> Find follow(A) and follow(B)???explanation required??thnx in advance
>
> --
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to algogeeks+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to