Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

COMP 004 Discrete Structures 1 Activity 6: Relations Instructions., Assignments of Discrete Mathematics

COMP 004 Discrete Structures 1 Activity 6: Relations Instructions. Answer the following statements on a clean sheet of paper or using productivity tool. Make sure your solution/answer is clear and readable. Submit on MS Teams in pdf format.

Typology: Assignments

2024/2025

Uploaded on 05/21/2025

johnry-cabale
johnry-cabale 🇵🇭

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Republic of the Philippines
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES
College of Computer and Information Sciences
Sta. Mesa, Manila
Name: Cabale, Johnry S.
Date: 5/5/2025
Course: BSCS 1-1N
Subject: Discrete Mathematics I
COMP 004 Discrete Structures 1
Activity 6: Relations
Instructions. Answer the following statements on a clean sheet of paper or using productivity
tool. Make sure your solution/answer is clear and readable. Submit on MS Teams in pdf format.
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 = 4
R= {(1,3), (2,2), (3,1), (4,0)}
b) a > b
R= {(1,0), (2,0), (2,1), (3,0), (3,1), (3,2), (4 ,0), (4,1), (4,2), (4,3)}
c) a | b
R= {(1,1), (1,2), (1,3), (2,2), (3,3)}
d) gcd(a,b) = 1
R= {(0,1), (1,0), (1,2), (1,3), (2,1), (2,3), (3,1), (3,2), (4,1), (4,3)}
2. For each of these relations on the set {1, 2, 3, 4}, decide whether it is reflexive, symmetric,
anti-symmetric, or transitive.
a) {(2,2),(2,3),(2,4),(3,2),(3,3),(3,4)}
(2,3) and (3,4) (2,4)R
(2,2), (2,3) (2,3) already in R
All needed transitive links are satisfied
Only Transitive
b) {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
Reflexive = All (a,a) for a S are included
Symmetric = (1,2) and (2,1) both in R
Transitive = (1,2) and (2,1) (1,1) R
Reflexive, Symmetric, Transitive
c) {(2, 4), (4, 2)}
Symmetric = Each pair has its reverse
Only Symmetric
d) {(1, 2), (2, 3), (3, 4)}
Anti-symmetric = No pair (a,b) and (b,a) with a b
Only Anti Symmetric
pf2

Partial preview of the text

Download COMP 004 Discrete Structures 1 Activity 6: Relations Instructions. and more Assignments Discrete Mathematics in PDF only on Docsity!

Republic of the Philippines POLYTECHNIC UNIVERSITY OF THE PHILIPPINES College of Computer and Information Sciences Sta. Mesa, Manila Name: Cabale, Johnry S. Date: 5/5/ Course: BSCS 1-1N Subject: Discrete Mathematics I

COMP 004 Discrete Structures 1

Activity 6: Relations Instructions. Answer the following statements on a clean sheet of paper or using productivity tool. Make sure your solution/answer is clear and readable. Submit on MS Teams in pdf format.

  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 = 4
    • R= {( 1 , 3 ), ( 2 , 2 ), ( 3 , 1 ), ( 4 , 0 )} b) a > b
    • R= {( 1 , 0 ), ( 2 , 0 ), ( 2 , 1 ), ( 3 , 0 ), ( 3 , 1 ), ( 3 , 2 ), ( 4 , 0 ), ( 4 , 1 ), ( 4 , 2 ), ( 4 , 3 )} c) a | b
    • R= {( 1 , 1 ), ( 1 , 2 ), ( 1 , 3 ), ( 2 , 2 ), ( 3 , 3 )} d) gcd(a,b) = 1
    • R= {( 0 , 1 ), ( 1 , 0 ), ( 1 , 2 ), ( 1 , 3 ), ( 2 , 1 ), ( 2 , 3 ), ( 3 , 1 ), ( 3 , 2 ), ( 4 , 1 ), ( 4 , 3 )}
  2. For each of these relations on the set {1, 2, 3, 4}, decide whether it is reflexive, symmetric, anti-symmetric, or transitive. a) {(2,2),(2,3),(2,4),(3,2),(3,3),(3,4)}
    • ( 2 , 3 ) and (3,4) → ( 2 , 4 )∈R
    • (2,2), (2,3) → (2,3) already in R
    • All needed transitive links are satisfied
    • Only Transitive b) {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
    • Reflexive = All (a,a) for a ∈ S are included
    • Symmetric = (1,2) and (2,1) both in R
    • Transitive = ( 1 , 2 ) and ( 2 , 1 ) → (1,1) ∈ R
    • Reflexive, Symmetric, Transitive c) {(2, 4), (4, 2)}
    • Symmetric = Each pair has its reverse
    • Only Symmetric d) {(1, 2), (2, 3), (3, 4)}
    • Anti-symmetric = No pair (a,b) and (b,a) with a ≠ b
    • Only Anti Symmetric

Republic of the Philippines POLYTECHNIC UNIVERSITY OF THE PHILIPPINES College of Computer and Information Sciences Sta. Mesa, Manila e) {(1, 1), (2, 2), (3, 3), (4, 4)}

  • Reflexive, Symmetric, Anti-symmetric, Transitive
  1. 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
  • Only Symmetric b) xy ≥ 1.
  • Symmetric and Transitive c) x = y + 1 or x = y − 1.
  • Only Symmetric d) x = y 2
  • Only Anti-symmetric
  1. Let A = {1, 2, 3, 4, 5} and B = {x, y, z} be two sets. Define the relations R and S on A × B as follows: R = {(1, x), (2, y), (3, z), (4, y), (5, x)} S = {(1, x), (2, y), (3, z)} a) Determine whether relation R is a subset of relation S. To be a subset, every element in R must also be in S. Compare:
  • (1, x) in S
  • (2, y) in S
  • (3, z) in S
  • (4, y) not in S
  • (5, x) not in S
  • R is not a subset of S because (4, y) and (5, x) are in R but not in S b) Find the difference between relations R and S.
  • R - S = {(4,y), (5,x)} c) Find the Intersection between relations R and S.
  • R ∩ S = {(1,x), (2,y), (3,z)}