Question 2 (5 points) = = Let X = {1,2,3} and Y = {a,b,c,d}. Define K: XY by specifying that K(1) = c; K(2) = a; and K(3
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 2 (5 points) = = Let X = {1,2,3} and Y = {a,b,c,d}. Define K: XY by specifying that K(1) = c; K(2) = a; and K(3
Question 2 (5 points) = = Let X = {1,2,3} and Y = {a,b,c,d}. Define K: XY by specifying that K(1) = c; K(2) = a; and K(3) = d; Define H:X → Y by specifying that H(1) = d; H(2) = b; and H(3) = d; H is one-to-one functions, K is not one-to-one function. True False Question 3 (5 points) For the following language L, state whether or not Lis regular and give the regular expression : {w constructed from alphabet (0, 1)* : w contains exactly one pair of consecutive 1's}. Not Regular, (1 + 01)* 0*0* (1 + 10)* Regular, (1 + 01)* 0*0* (1 + 10)* Regular, (1 + 01)* 00 (1 + 10)* Not Regular, (1 +01)* 00 (1 + 10)*