Discrete Mathematical Structures for Computer Science. Please show your step and explain !
Transitive Closure:-
The Transitive Closure, R+ is the smallest transitive relation that contains R as a subset.
Let a relation R is defined on a Set A and A contains n elements, then
R+ = R U R2 U R3 U .......... U Rn.
Here to find the transitive closure for the given relation, we need to find the n.
n is the total number of elements(also called cardinality) in set A.
Given, Set A = { 0,1, 2, 3 }
so, n = 4.
So, Transitive closure of R is,
R+ = R U R2 U R3 U R4.
Given R = { (0,1) , (0,2) , (1,1) , (1,3) , (2,2) , (3,0) }
R2 = R o R
= { (0,1) , (0,2) , (1,1) , (1,3) , (2,2) , (3,0) } o { (0,1) , (0,2) , (1,1) , (1,3) , (2,2) , (3,0) }
= { (0,1) , (0,3) , (0,2) , (1,1) , (1,3) , (1,0) , (2,2) , (3,1) , (3,2) }
R3= R2 o R
= { (0,1) , (0,3) , (0,2) , (1,1) , (1,3) , (1,0) , (2,2) , (3,1) , (3,2) } o { (0,1) , (0,2) , (1,1) , (1,3) , (2,2) , (3,0) }
= { (0,1) , (0,3) , (0,0) , (0,2) , (1,1) , (1,3) , (1,0) , (1,2) , (2,2) , (3,1) , (3,3) , (3,2) }
R4= R3 o R
= { (0,1) , (0,3) , (0,0) , (0,2) , (1,1) , (1,3) , (1,0) , (1,2) , (2,2) , (3,1) , (3,3) , (3,2) } o { (0,1) , (0,2) , (1,1) , (1,3) , (2,2) , (3,0) }
= { (0,1) , (0,3) , (0,0) , (0,2) , (1,1) , (1,3) , (1,0) , (1,2) , (2,2) , (3,1) , (3,3) , (3,0) , (3,2) }
R+ = R U R2 U R3 U R4
= { (0,1) , (0,2) , (1,1) , (1,3) , (2,2) , (3,0) } o { (0,1) , (0,3) , (0,2) , (1,1) , (1,3) , (1,0) , (2,2) , (3,1) , (3,2) } o { (0,1) , (0,3) , (0,0) , (0,2) , (1,1) , (1,3) , (1,0) , (1,2) , (2,2) , (3,1) , (3,3) , (3,2) } o { (0,1) , (0.3) , (0,0) , (0,2) , (1,1) , (1,3) , (1,0) , (1,2) , (2,2) , (3,1) , (3,3) , (3,0) , (3,2) }
= { (0,0) , (0,1) , (0,2) , (0,3) , (1,0) , (1,1) , (1,2) , (1,3) , (2,2) , (3,0) , (3,1) , (3,2) , (3,3) } .
So, the Transitive closure for the given relation R is
R+ = { (0,0) , (0,1) , (0,2) , (0,3) , (1,0) , (1,1) , (1,2) , (1,3) , (2,2) , (3,0) , (3,1) , (3,2) , (3,3) }.
Discrete Mathematical Structures for Computer Science. Please show your step and explain ! 7. Set A...
Question 2 For each of the following relations R, determine (and explain) whether R is: (1) reflexive (2) symmetric (3) antisymmetric (4) transitive (a) R-(x, y):x +2y 3), defined on the set A 10, 1,2,3) (b) R-I(x, y): xy 4), defined on the set A (0,1,2,3,4 (c) R-(x, y): xy 4), defined on the set A-0,,2,3) Question 2 For each of the following relations R, determine (and explain) whether R is: (1) reflexive (2) symmetric (3) antisymmetric (4) transitive (a)...
Discrete math for Computer Science, Sets: Binary relations / Functions Please show work 2. Let S = {0, 2, 4, 6), and T-1, 3, 5, 7). Determine whether each of the following sets of ordered pairs is a function from S to T. If so, is it injective, surjective, and bijective?
CC9 - Discrete Structures Mathematical Induction Group Enhancement Activity Find a pair from your classmates and show the solution of the following: Show the proof of the following equations using mathematical induction. (basis step: 4 pts., inductive hypothesis: 6 pts., inductive step: 10 pts). (in presenting solutions, follow it was presented in the module. Ś (4i – 3) = n(2n-1) 1. Solution: Basis Step: P(1) Inductive Hypothesis: P(k) Inductive Step: Plk + 1)
Could you please answer the question Q1 to Q3. Write the answer clearly and step by step. 1 Let U = {1, 2, 3, 4, 5, 6, 7} be the universe. Form the set A as follows: Read off your seven digit student number from left to right. For the first digit ni include the number 1 in A if ni is even otherwise omit 1 from A. Now take the second digit n2 and include the number 2 in...
Hello, I need help with the following Discrete problem. Please show your work, thank you! 11. Let R be the relation defined on the set of eight-bit strings by Si R 52 provided that sy and sz have the same number of zeros. (a) Show that is an equivalence relation. (b) How many equivalence classes are there? (c) List one member of each equivalence class.
3. (a) Let R be a binary relation on the set X = {1,2,3,4,5,6,7}, defined by R= {(1,3), (2,3), (3, 4), (4,4),(4,5), (5,6), (5,7)} (1) (6 pts) Find Rk for all k = 2, 3, 4, 5,... (2) (3 pts) Find the transitive closure t(R) of R by Washall's algorithm and draw the directed graph of t(R).
Python 3 Discrete Mathematics We are going to write a program to read in relations, show the matrix of the relation. We will also show if the relation is reflexive, symmetric, anti-symmetric and transitive. This program will read in files that the user gives. Normal Error handling applies. The file the user gives you will have the elements of the set for the relation followed by the tuples in the relation. The Text Files The first line of the text...
Discrete Math-Check my work please {(a,b) € NxN: on N is a Il show that the relation R= b = 2ra, kao integer partial ordering, R is a relation. INERA Since n-20 nrn So R is reflepise. Iff nRm and mRn, then n=2km and m=2 sn. no 2lk15) Kts=0 Kss=o, so nom, hence Ris anti-symmetric If nRm and nRp, then n=21m and in=256. So, n = 2(kts p nep. R is transitive. This given relation Res partiel mio
Math 240 Assignment 4 - due Friday, February 28 each relation R defined on the given set A, determine whether or not it is reflexive, symmetric, anti-symmetric, or transitive. Explain why. (a) A = {0, 1,2,3), R = {(0,0).(0,1),(1,1),(1,2).(2, 2), (2.3)} (b) A = {0, 1,2,3), R = {(0,0).(0,2), (1,1),(1,3), (2,0), (2,2), (3,1),(3,3)} (c) A is the set of all English words. For words a and b, (a,b) E R if and only if a and b have at least...
(2 pts each) Find a different equivalent form of the statements. Justify your answers using Laws of equivalence or otherwise. (a) Not all men are Scientists. (b) If you are a computer science major you will need discrete mathematics. (10 pts) Let R be an equivalence relation on a non empty set X. So R C X X X. R is reflexive: Vx E X, (x,x) E R, R is symmetric: Vx, y E X, (x,y) E R = (y,x)...