b.
Consider the grammar, , contains an equal number of a’s and b ’s.
If is one of the valid string with prefix u that will end as . In case of DCFG all the handles are being forces, so if is one of the valid string then that will end for handling . Thus, the DK must be capable if handling all the accept states, but without outgoing path conditions.
The construction of the DK-test , concludes that G is deterministic, if the property of accept state is satisfied. Construct NFA to construct DFA, and find that there is no outgoing path is found from the start state.
Consider the valid string, and it handles , after the reduction of the rule, it becomes
K contains the path from start to end state. Give the input , been read after the transition and shift the string. After shifting , it is been found that there exists no outgoing state.
Therefore, Using DK-test it is proved that the grammar belongs to DCFG.