The International University of Scholars: Department of Computer Science & Engineering
The International University of Scholars: Department of Computer Science & Engineering
(d) In DFA, this very state is like dead-end non final state:
i) ACCEPT ii) REJECT iii) DISTINCT iv) START
5.2. If A has a elements and B has b elements, how many elements are in A × B? Explain your answer. (1.5 point)
5.3. If C is a set with c elements, how many elements are in the power set of C? Explain your answer. (1.5 point)
5.4. Consider the undirected graph G= (V, E) where V, the set of nodes, is {1, 2, 3, 4} and E, the set of edges, is
{{1, 2}, {2, 3}, {1, 3}, {2, 4}, {1, 4}}. Draw the graph G. What are the degrees of each node? Indicate a
path from node 3 to node 4 on your drawing of G. (1.5 points)
5.5. The formal description of a NFA, K is {{A,B,C,D}, {0,1}, A, {C}}, where δ is given by the following table.
Give the state diagram of this machine. (5.25 points)
0 1
A {A,B} {A, B}
B {C, D}
C
D D {D, C}
(a) Draw the NFA machine. Now convert NFA to DFA. Suppose string, A = 0010. Now justify L(M) = A or
L(M) != A, where mention the every characters with diagram step by step.
5.6. Let X is the set {1, 2, 3, 4, 5} and Y be the set {6, 7, 8, 9, 10}. The unary function f: X−→Y and the binary
function g : X ×Y −→Y are described in the following tables. (1.25 points)
n f(n) g 12 14 16 18 20
2 12 2 20 20 20 20 20
4 14 4 14 16 18 20 12
6 12 6 14 14 16 17 18
8 14 8 18 16 14 12 20
10 12 10 12 12 12 12 12