1. Draw a non-deterministic finite automaton which accepts the language denoted by the regular expression
(0 + 1)∗0101∗
4. If L = {10, 100} and M = {01, 1, 100} are languages on the alphabet {0, 1}, then write down the values of (i) LM and (ii) L + M.
6. Show that the grammar below (written with BNF notation) is ambiguous.
< Program > ::= < Stmt > | < Program > ; < Stmt > < Conditional > ::= if < Bool > then < Program >
< Bool > ::= true | false
<Stmt> ::=<Conditional>|S1 |S2
Parse trees can be used to give meaning to words in context free languages. Use your example to give two different meanings to a word in this grammar.
The approximate number of marks to be assigned to these questions are, in order, 3, 5, 2, 2, 2, 6, making 20 in total.
1
Expert's answer
2019-03-11T11:56:28-0400
Dear chimmpy1010, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments