



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Lecture 9: 4/28/ Announcements: Ps5 out today: Review Problems, not to be turned in Ps4 solutions out tomorrow; Midterm Tues, May 5; Open Book and Notes; Coverage through relations (today) Discussion this Friday: Review session (run by me). Bring questions Relations Continued. Reflexive: x R x for all x Symmetric: x R y - > y R x for all x,y Transitive: x R y and y R x - > x R z for all x, y, z
Note: you can talk about the blocks being related to one another by R, [x] R [y] iff x R y. Well-defined. Now go back to prior examples and identify the blocks in each case. Proposition: Let R be an equivalence relation on a set A. Then the blocks of R are a partition of A. (Thm 2.6 in book) ........................................................ Proof: - Every element x of A is in the claimed partition: x โ [x].
Example 9: \Let \R be the set of real number, x~y if x - \lfloor x \rfloor = y - \lfloor y \rfloor What are the blocks? What would be a "canonical element" (name) for each block? Real values in the range (-1, 1).
Given a relation, we sometimes want to FORCE it to be reflexive ... or symmetric ... or transitive ...or any combination of these. We do this by adding just enough extra pairs to get the property. Draw a picture for the transitive closure of a directed graph. Draw a picture for reflexive-transitive closure. Def: The transitive closure of a relation R on A x A is the smallest relation R* that contains A and is transitive. claim: this is well defined: there is a unique smallest relation R that contains A x A and is transitive. In fact, it is the intersection of all relations R that are transitive and contain A. Procedure to find the transitive closure: "add in all shortcuts". In the graph-theoretic realization of the relation R, just add an arc (a,c) whenever you have an (a,b) and a (b,c) but lack an (a,c). Example 1: Do it with a graph Example 2: An infinite set example: Suppose i R i+1 for all i in Z. Transitive closure is what?
Another view of Transitive closure is to consider R^2 = R ยฐ R, which contains all pairs implied directly by transitivity, then R^3 = R^2 ยฐ R, which contains all pairs implied by transitivity used twice, and = R^4 and so on, If we consider all powers up to = Rn-^1 , and union them all together, we get the transitive closure of a finite set of size n. NOTE DONE in Class: Let |- be a relation on states of your computer, where the state captures all the contents of your machine: registers, disk contents, etc. Assume not hooked up to the web or a keyboard so that whatever happens next is determined by its present state | + |--- for the transitive closure of the above. What would this represent? | You will go from state C to state C'. Eventually. What would you say if C |- C? Your machine is looping. Reflexive closure R <- R union {(x,x): x in A} (easy) Transitive closure: if (x,y) in R and (y,z) in R add (x,z) to R.