R A B Relational Mapping b 1 Properties b 2 a 1 (Archery) a 2 b - - PDF document

r
SMART_READER_LITE
LIVE PREVIEW

R A B Relational Mapping b 1 Properties b 2 a 1 (Archery) a 2 b - - PDF document

Binary relation R from A to B codomain domain R A B Relational Mapping b 1 Properties b 2 a 1 (Archery) a 2 b 3 a 3 b 4 arrows lec 3W.1 lec 3W.2 Albert R Meyer February 22, 2012 Albert R Meyer February 22, 2012 function archery


slide-1
SLIDE 1

1

lec 3W.1

February 22, 2012

Relational Mapping Properties (Archery)

Albert R Meyer

lec 3W.2

February 22, 2012

Binary relation R from A to B

Albert R Meyer

domain codomain A B

a2 a3 b1 a1 b2 b3 b4

arrows

R

lec 3W.3

February 22, 2012 Albert R Meyer

function archery ≤ 1 arrow out

F( ) =

A B

lec 3W.4

February 22, 2012 Albert R Meyer

≤, ≥ ≤, ≥

archery on relations

, = 1 arrow out

A B

≤, ≥ ≤, ≥ ,= 1 arrow in

lec 3W.5

February 22, 2012 Albert R Meyer

total relation archery

1 arrow out

A B

lec 3W.6

February 22, 2012 Albert R Meyer

A B

total relation archery

1 arrow out

slide-2
SLIDE 2

2

lec 3W.7

February 22, 2012 Albert R Meyer

A B

total relation archery

1 arrow out

lec 3W.8

February 22, 2012

total relation

R is total iff

A = R−1 B

( )

Albert R Meyer

lec 3W.9

February 22, 2012

total & function archery

exactly 1 arrow out

Albert R Meyer

A B

F( ) =

lec 3W.10

February 22, 2012

1 g(x, y) ::= x − y

domain(g) = all pairs of reals codomain(g) = all reals But g is not total: g(r,r) not defined

Albert R Meyer

g : R×R → R

lec 3W.11

February 22, 2012

1 g0(x, y) ::= x − y

where g0, g have the same graph, different domains

g0 is total

Albert R Meyer

g 0 :D → R

D ::= R2 − (x, y)|x = y

{ }

lec 3W.12

February 22, 2012 Albert R Meyer

surjection archery

1 arrow in

A B

slide-3
SLIDE 3

3

lec 3W.13

February 22, 2012 Albert R Meyer

surjection archery

1 arrow in

A B

lec 3W.14

February 22, 2012 Albert R Meyer

surjection archery

1 arrow in

A B

lec 3W.15

February 22, 2012

surjection

R is a surjection iff

R A ( ) = B

Albert R Meyer

lec 3W.16

February 22, 2012 Albert R Meyer

A B

injection archery

≤ 1 arrow in

lec 3W.17

February 22, 2012 Albert R Meyer

A B

injection archery

≤ 1 arrow in

lec 3W.18

February 22, 2012 Albert R Meyer

A B

injection archery

≤ 1 arrow in

slide-4
SLIDE 4

4

lec 3W.19

February 22, 2012 Albert R Meyer

B A

f( ) = bijection archery

exactly 1 arrow out exactly 1 arrow in

lec 3W.20

February 22, 2012

Mapping Rule (bij)

A bijection from A to B implies

|A| = |B| for finite A, B

Albert R Meyer
slide-5
SLIDE 5

MIT OpenCourseWare http://ocw.mit.edu

6.042J / 18.062J Mathematics for Computer Science

Spring 2015 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.