Printer friendly version
|
||||||||||||||||
An introduction to Discrete MathematicsIntroductionDiscrete maths is the foundation of computer science. It is particularly important for algorithm and compiler design.Sets
Key types of relations:Injective: Each y, y=f(x), can only come from one unique x. Eg; f(x)=2+1 is, x2 is not. Surjective: Each y in the codomain is defined by at least one x. Eg; x2 for R isn't (x2=-1) Bijective: One-one: injective and bijective. Eg; Identity function,g(x) = x2 isn't: not injective
Relations: A relation R on A is defined to be R ? A x A. Note (a,b) ?R can be written aRb Reflexive:A relation where ?a?A (a,a)?R,ie where ?x, x->x (all x relate to x) Eg;=,<,?,| Antisymmetric: If a relates to b,and b relates to a then a=b Eg; a1< a2,a2< a1 so a1=a2 Symmetric: If f(x)=y, then f(y)=x, eg; equals, “... is married to ...” Transitive: If aRb and bRc then aRc Eg; Divisibility: a|b and b|c => a|c
Preorder - a transitive relation that is also reflexive. Partial order - a preorder that is antisymmetric. Equivalence relation - a relation that is a preorder and symmetric. |
Discrete_Maths/Summary.htm was last modified on 2007-01-02 12:51:41

Printer friendly version