1.

Choose the incorrect process to check whether the string belongs to the language of certain variable or not?(a) recursive inference(b) derivations(c) head to body method(d) All of the mentionedI have been asked this question during an interview.I'm obligated to ask this question of Finding Patterns in Text,Algebric Laws and Derivatives in chapter Regular Expressions and Languages of Automata Theory

Answer»

Correct OPTION is (d) All of the mentioned

Explanation: There are two approaches to infer that certain string are in the language of a certain variable. The most CONVENTIONAL way is to use the rules from body to head, recursive inference. The second APPROACH is expanding the starting variable using one of its productions whose head is tart symbol and derive a string consisting ENTIRELY of terminals(head to body or derivations).



Discussion

No Comment Found

Related InterviewSolutions