D421 Key Concepts
D421 Key Concepts
Table of contents:
Sets
Higher Set Operations
Overview of Functions
Functions- Composition and Applications
Binary Relations and Directed Graphs
Order Relations
N-ary Relations
Sets
An ordered pair (a,b), is pair of elements listed in a way that the order matters,
that is (x,y) ≠ (y,x)when x≠y
The Cartesian product of sets A and B is A×B = {(a,b)|a∈ A, b∈ B}.
|A×B| = |A|×|B|
A×B×C= {(a,b,c)| a∈ A b∈ B, c∈ C}. The elements in this set are called ordered
triples.
A1×A2... ×An = {a1∈ A1, a2∈ A2, ..., an∈ An}. The elements in this set are called n-
tuples.
A string is a sequence of characters where order matters.
o the set of characters used in a string are called the alphabet
o the number of characters in a string is called the length of the string.
A binary string consists of two characters: zeros and ones. That is, the alphabet
is {0,1}. Each character in a binary string is called a bit. Binary strings can be of
different lengths and are called n- bit strings if they are of length n.
The empty string λ is a string of length 0.
Concatenation- joining strings together to make a new string.
Two sets are disjoint if A ∩ B = ∅
Pairwise disjoint sets -each pair in a sequence of sets is disjoint.
A partition of a non-empty set A is a collection of nonempty sets whose union is
all of A and each pair in the collection is pairwise disjoint.