Notes
Notes
The function is not well defined. Fractions have more than one representation as
quotients of integers
so F(1/2) = f(3/6) and F(1/2) = 1 and F(3/6) = 3. So Its not well defined.
One-to-one
Onto Function on an infinite set - suppose that y is any element of Y and show
there is an element X of X with F(x) = y.
f(x) = 4x - 1 for all x in R
y = 4x - 1
x = (y + 1) / 4
so for every y there is a corresponding x. OR NOT?? TF??
One-to-One Correspondences
Quantified statement
2. Number systems
Positioning systems: Polynomial representation in given base
Decimal. binary, hexadecimal
Conversion
changing a number given in one base into another
Computer works with binary number ONLY (there is no -)
If bit == 1 integer is negative.
2-s complement
Hexadecimal
3. Algorithms
Pseudocoode
Assignment: ":="
Block of operations:
Loops
Forks
4. Sequences
Sum and Product capital greek sigma and pi. Compact formulas for sums and products
mathematical induction - method to prove a property of a sequence
1.Check that the property for the base case is correct
2.Write the inductive hypothesis that the property is correct for an arbitrary
element
3.Show that the property is true for the next element under the condition that the
hypothesis is correct
Recursion
Recursively defined sequences
Venn diagrams
Cartesian Product
Set identities
Power set
Partition of a set
Disjoined sub-sets
Integers rational real numbers
6. Functions: One to one, onto, inverse, hesh-functions
y = F(x)
Domain set X = {xi} and co-doomain set Y = {yi}
Every xj included in X has an image yi included in Y
No xj in X has two or more images in Y
draw arrow diagrams
Important functions: lx(x) = x; bolean; y = logbasex; Hash