Class Activity
Class Activity
2. A survey on a sample of 25 new cars being sold at a local auto dealer was conducted to
see which of three popular options, air-conditioning (A), radio (R), and power windows
(W), were already installed. The survey found:
15 had air-conditioning (A), 5 had A and W, 12 had radio (R), 9 had A and R, 3 had all three
options.11 had power windows (W), 4 had R and W, Find the number of cars that had:
a) only W
b) only A
c) only R
d) R and W but not A
e) A and R but not W
f) only one of the options
g) at least one option
h) none of the options.
Use the data to fill venn diagram
Q2: Let A = {a1, a2, a3} and B = {b1, b2, b3, b4, b5}. Enumerate the ordered pairs in the relation R
from A to B represented by the matrix, Also draw the directed graph.
[02 Marks]
Q3: Suppose that the relation R on a set is represented by the matrix. [03
Marks]
Q4: Consider following relations on the set of integers. Which of these relations contain each of
the pairs (1, 1), (1, 2), (2, 1), (1, −1), and (2, 2)?
[06 Marks]
a) R1 = {(a, b) | a ≤ b}
b) R2 = {(a, b) | a ≥ b}
c) R3 = {(a, b) | a = b or a = −b}
d) R4 = {(a, b) | a = b}
e) R5 = {(a, b) | a = b + 1}
f) R6 = {(a, b) | a + b ≤ 3}
Q. 4
1. List the ordered pairs in the relation R from A = {0, 1, 2, 3, 4} to B = {0, 1, 2, 3},
where (a, b) ∈ R if and only if
a) a = b.
b) a + b = 4.
c) a>b.
d) a | b. (a divides b) b/a => 1/1,2/1,3/1,2/2,3/3
e) gcd(a, b) = 1. -> (1,1),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3),(4,1),(4,3).
f ) lcm(a, b) = 2. ->
2. Determine whether the relation R on the set of all people is reflexive, symmetric,
antisymmetric, and/or transitive, where (a, b) ∈ R if and only if
a) a is taller than b.
b) a and b were born on the same day.
c) a has the same first name as b.
d) a and b have a common grandparent.
3. Determine whether the relation R on the set of all Web pages is reflexive, symmetric,
antisymmetric, and/or transitive, where (a, b) ∈ R if and only if
a) everyone who has visited Web page a has also visited Web page b.
b) there are no common links found on both Web page a and Web page b.
c) there is at least one common link on Web page a and Web page b.
d) there is a Web page that includes links to both Web page a and Web page b.
4. Determine whether the relation R on the set of all real numbers is reflexive, symmetric,
antisymmetric, and/or transitive, where (x, y) ∈ R if and only if
a) x + y = 0.
b) x = ±y.
c) x − y is a rational number.
d) x = 2y.
e) xy ≥ 0.
f ) xy = 0.
g) x = 1.
h) x = 1 or y = 1.
5. Determine whether the relation R on the set of all integers is reflexive, symmetric,
antisymmetric, and/or transitive, where (x, y) ∈ R if and only if
a) x = y.
b) xy ≥ 1.
c) x = y + 1 or x = y − 1.
d) x ≡ y (mod 7).
e) x is a multiple of y.
f ) x and y are both negative or both nonnegative.
g) x = y2.
h) x ≥ y2.
1. Let R and S be relations on a set A. Assuming A has at least three elements, state
whether each of the following statements is true or false. If it is false, give a
counterexample on the set
A = {1, 2, 3}:
EQUIVALENCE RELATIONS
2. Let S = {1, 2, 3,..., 18, 19}. Let R be the relation on S defined by “xy is a square,” (a)
Prove R is an equivalence relation. (b) Find the equivalence class [1]. (c) List all
equivalence classes with more than one element.
3. Let S = {1, 2, 3,..., 14, 15}. Let R be the equivalence relation on S defined by x ≡ y (mod
5), that is, x − y is divisible by 5. Find the partition of S induced by R, i.e. the quotient set
S/R.
Venn Diagram
a) Consider the statements “All cats are mammals and a tiger is a cat, so a tiger is a
mammal.” Identify the assumptions and conclusion/argument. is the argument valid?
Show with a Venn Diagram.
b) Many people don’t live by a beach, If a person is a Lahore resident, he or she does not
live by a beach. Ali does not live by the beach.
Facts:
Study the below-given relations (graphs/ arrow diagrams) and identify if they are POSET or
equivalence relations. Or both?