1 / 5

Relations - review

Relations - review. A binary relation on A is a subset of A×A (set of ordered pairs of elements from A ) Example: A = { a , b , c , d , e } R = { ( a , a ),( a , b ),( b , b ),( b , c ), ( c , e ),( d , a ),( d , c ),( e , b ) }

coty
Download Presentation

Relations - review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Relations - review • A binary relation on A is a subset of A×A(set of ordered pairs of elements from A) • Example:A = {a,b,c,d,e}R= {(a,a),(a,b),(b,b),(b,c), (c,e),(d,a),(d,c),(e,b)} • A binary relation between A and B is a subset of A×B(a set of pairs (a,b) where aA and bB) 1 1 1 1

  2. Types of relations • reflexive (a,a)R for all aA • symmetric if (a,b)R, then (b,a)R • transitive if (a,b)R and (b,c)R, then (a,c)R reflexive ??symmetric ?? transitive ??

  3. Question #1 • Number of relations on a set of n elements ?symmetricreflexivesymmetric and reflexivesymmetric and not reflexiveirreflexiveasymmetricantisymmetric • irreflexive(a,a)R for all aA • asymmetricif (a,b)R, then (b,a)R • antisymmetricif (a,b)Rand (b,a)R, then a=b ?

  4. Question #2 • equivalence relation = reflexive symmetric transitive • “equivalence” of objects e.g., “X has the same age as Y” • If R and S are relations on the same set A: • is RS also a relation ? • is RS also a relation ? • is P  R also a relation ? • is P  R also a relation ? reflexive antisymmetricequivalence relation partial ordersymmetric ireflexivestrict partial order total order • partial order = reflexive antisymmetrictransitive • “order” of objects e.g., “X is a subset of Y” • strict partial order = ireflexiveasymmetric transitive • “strict order” of objects e.g., “X is older than Y” • total (linear) order =p.o.+ every pair comparable:(a,b)R or (b,a)R for alla,bA • e.g., “X is a subset of Y” is a partial but not a total order

  5. Question #3 • proveMultinomial Theorem • by induction on k — by induction on n • using Binomial Theorem • simplify (1) (2) (3)

More Related