Professional Documents
Culture Documents
Automata 1
Automata 1
Villaos Exercise 1
BSCS-2B
Subsets
Let A = Z’ , B = {n ε Z ǀ 0 ≤ n ≤ 100, and C = {100, 200, 300, 400, 500}. Evaluate and explain the
truth and falsity of each of the following statements. (10 pts)
3. C and B have at least one element in common = Yes, 100 is in both B and C
Cartesian Products
1. Find A x B = {(1,u),(1,v),(2,u),(2,v),(3,u),(3,v)}
2. Find B x A = {(u,1),(u,2),(u,3),(v,1),(v,2),(v,3)}
3. Find B x B = {(u,u),(u,v)(v,u),(v,v)}
5. Let R denote the set of all real numbers. Describe R x R. = R x R = R2 – represents a collection of points
in the plane.
Relation
Let A = {1,2}, and B = {1,2,3} and define a relation R from A to B as follows: (15 pts)
2. Is 1 R 3? = yes
Is 2 R 3? = no
Is 2 R 2 ? = yes
Functions
Let A = {2, 4, 6} and B = {1, 3, 5}. Which of the relations R, S and T defined below are functions from A
A x B = {(2,1),(2,3),(2,5),(4,1),(4,3),(4,5),(6,1),(6,3),(6,5)}
S = { y = x + 1 , (x,y) ε A x B}
S = {(2,3), (4,5)}
= S is not a function from A to B
Domain = {2, 4, 6} = A
Range = {1,5}
= T is a function from A to B.