Question: (a) If a language A is {a} and another language B is {,1}, what is A.B 3 ? A.B 3 = {a, a1, a11, a111}
(a) If a language A is {a} and another language B is {,1}, what is A.B3?
- A.B3 = {a, a1, a11, a111}
- A.B3 = {, a, a1, a2, a3}
- A.B3 = {a, 1, 11, 111, 2, 3}
- A.B3= {a, , 1, 11, 111}
(b) If A = {, a} and B = {a ,b}, what is (B2) (A.B)? ( means intersection)
- {, a, b, aa, ab, bb, ba}
- {, a, aa, ab}
- {ab, ba}
- {aa, ab}
(c) If A and B are languages with m and n strings respectively does it follow that A.B has mn strings? ("mn" means "m times n")
- No, it is not true because at least there is a counter example, A = B = {, a}.
- No, it is not true when both A and B are empty set
- No, it is not true when A = B.
- Yes.
(d) How many of the following languages can be defined by Finite Automata?
{ab, aabb, aaabbb, aaaabbbb, aaaaabbbbb....}
{abb, aabbbb, aaabbbbbb, aaaabbbbbbbb, ......}
{a, aa, aba, abba, abbba, abbbba, abbbbba, ......}
{a, bab, bbabb, bbbabbb, bbbbabbbb, ......}
- 1
- 2
- 3
- 4
(e) If A = {a,b} and B = {b,c}, what is A B and what is B A?
("" means difference, ref Formula Booklet)
- A B = {a,b} and B A = {b,c}
- A B = {b} and = B A = {b}
- A B = {c} and = B A = {a}
- A B = {a} and = B A = {c}
(f) A computer program which tells you the time returns different results at different times. Does this mean that it is non-deterministic?
- Yes, it is non-deterministic.
- Yes or no, it is non-deterministic because the results is different; but it is deterministic because it returns the correct time.
- No, it is deterministic because the program performs the exact same operation.
- No, it is deterministic because for any given time (i.e. for the same input) the result is same.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
