Discrete. "separate, distinct from others," late 14c., from Old French discret, discre, and directly from Latin discretus "separated;" see discreet. Related: Discretely; discreteness. https://www.etymonline.com/word/discrete
Collection. A group of objects of one type that have been collected by one person or in one place. Oxford dictionary.
Object. The objects are sometimes referred to as elements or members. Elements are unique.
Level 2.
Group. A number of people or things that are located close together or are considered or classed together. Oxford dictionary.
Level 3.
Number - The content of a statement of number is an assertion about a concept. [source: The Foundations of Arithmetic, §55, Engl.transl. page 67].
How to use sets?
TAG is the set of all elements such that element checks properties.
Finite sets. E.g. A={1,2,3,4}
Either infinite or large finite sets. E.g. A={x∣x is positive, even integer}
Number sets
Worked examples
Show that A={1}×{1,2}⊆B={1}×{1,2,3}
By def. A⊆B iff ∀x.x∈A⟹x∈B
By inspection
A={(1,1),(1,2)}, B={(1,1),(1,2),(1,3)}
A⊆B since every element of A is an element of B.
Show that A={2n∣n∈Z+}⊆B={n∣n∈Z}
By def. A⊆B iff ∀x.x∈A⟹x∈B
Let x∈A, x∈Z+because Z+ is closed under the operation
of multiplication. x∈Z since Z+⊆Z .
Show that A={1,2,3}⊈B={}
By def. A⊆B iff ∀x.x∈A⟹x∈B
but {} iff ∀x.x∈/{}, so the consequent always is False, hence A⊈B.
Show that A={1,2,3,4}⊈B={n∣n∈A∧n+m=8 for some m∈C}, C={5,6,7,8}
By def. A⊆B iff ∀x.x∈A⟹x∈B
1∈A⟹1∈/B, so A⊈B.
In a group of students, each student is taking a mathematics course or a computer science course or both. One-fifth of those taking a mathematics course are also taking a computer
science course, and one-eighth of those taking a computer science course are also taking a mathematics course. Are more than one-third of the students taking a mathematics course?
Let C be a circle and let D be the set of all diameters of C. What is ∩ D? (Here, by “diameter” we mean a line segment through the center of the circle with its endpoints on the circumference
of the circle.)
A statement or proposition is a declarative sentence that is either true or false, but not both. Remember structure no content.
Don't use "preposition" as synonymous with "statement". A preposition is a word such as 'by', 'for', 'into', or 'with' which usually has a noun group as its object. Collins.
🏌🏼♂️
What are the four types of sentences? Declarative, exclamatory, imperative, and interrogatory. https://typesofsentences.com/
Other views of propositions. A proposition is the meaning expressed by statements.
A predicate can be understood as a proposition whose truth depends on the value of one or more variables.
When you wish to provide a conclusion (or proof in mathematics), you must use chain statements throughout logical consequences (or connectives, methods, and pieces of evidence) from a base set of previous results – such as axioms, theorems, and definitions.
value judgment
The following statements are primitive prepositions
Cogito.
Sum.
2+3=5
1+1=3
P=NP This is either true or false (but not both), but you don't know.
for all x∈R, x>0 then x2>0
Sun leaves tomorrow.
She loves him.
💡
Actually, whether sentence is a preposition while the sentence matches the definition.
Moreover, the definition does exclude statements such as
Read 'Cogito ergo sum' in Discourse on the Method. (command)
Let's go to the beach tomorrow. (proposal)
God'll help you! (exclamation)
2+3=5? (question)
P(x):=x+4=6 (indeterminate declarative sentence). It's a predicate.
if x>0, then x2>0
f(x)=x2 (indeterminate declarative sentence)
This sentence is false. Contradictions are not statements. (indeterminate statement).
You gonna use variables to represent prepositions, thus as you use letters in algebra. e.g.
p:1+2=3
Logical formulas
Worked examples
1=-1?
Pythagorean theorem
Every polynomial ax^2+bx+c has two roots over C.
root:ax2+bx+c=0
Problem Set
Proofs
What is the proof?
Proof. A finite sequence of statements (called well-formed formulas in the case of a formal language), each of which is a previous result -axiom, an assumption, experiments, or theorems- in the sequence by a rule of inference.
Axiom. Simple postulate or assumption based on a priori knowledge and free contradictions.
Theorems. Important true statements.
Lemma. Preliminary statements.
Corollary. Statements that follows few logical steps from theorem.
Developing mathematical methods to verify programs and systems remains an active research area.
Good proofs
State your game plan.
Keep a linear flow.
A proof is an essay, not a calculation.
Avoid excessive symbolism.
Revise and simplify.
Introduce notation thoughtfully.
Structure long proofs.
Be wary of the “obvious.”
Finish.
Methods
Proof by perfect induction o Proof by exhaustion
Proof of a Boolean theorem through perfect induction.
Simple induction
We know by Modus Ponens:
P(0)⟹P(1)P(0).Therefore, P(1).
The principle of induction says
[P(0)∧∀nP(n)⟹P(n+1)]⟹∀nP(n)
Base case: P(0)Inductive Hypothesis: Assume that P(n) is trueInductive step:
(∀nP(n)⟹∀nP(n+1)) iff ∀nP(n+1)
∀nP(n+1) use ∀nP(n) when ∀nP(n)⟹∀nP(n+1) but the same to simple P(n+1)if always is true then P(n) is always true.
Worked example.
∀nn∈N, P(n):∑i=0ni=2n(n+1)
Base case:P(0):0=0Inductive Hypothesis: Assume that P(n):i=0∑ni=2n(n+1) is trueInductive step: We need to prove P(n+1):i=0∑n+1i=2(n+1)(n+2)
Each element of one set is paired with exactly one element of the other set, and each element of the other set is paired with exactly one element of the first set.
What does it mean to write |A| = n?
It means that there is a bijection f : A → {1, . . . , n}
MIT OpenCourseWare. 2016. 3.3.3 Counting with Bijections: Video. YouTube. Retrieved May 25, 2021 from https://www.youtube.com/watch?v=n0lce1dMAh8
The Bijection Rule or Equinumerosity
Let S and T be two finite sets. If there exists one-to-one correspondence (or bijection) between them, from S to T, if and only if ∣S∣=∣T∣ i.e. S and T have the same number of elements. This is taken as the definition.
The Braille system of representing characters was developed early in the nineteenth century by Louis Braille. The characters, used by the blind, consist of raised dots. The positions for the dots are selected from two vertical columns of three dots each. At least one raised dot must be present. How many distinct Braille characters are possible?
∣Dot∣=∣Raiseddot∣+∣Noraiseddot∣=2
∣Dot∣ndots=columns×rows=26=64 are Braille characters possibles.
The options available on a particular model of a car are five interior colors, six exterior colors, two types of seats, three types of engines, and three types of radios. How many different possibilities are available to the consumer?
How many different car license plates can be constructed if the licenses contain three letters followed by two digits if repetitions are allowed? if repetitions are not allowed?
Car license plates={(letter,letter,letter,digit,digit)∣letter∈English alphabet,digit∈Decimal numeral system}
∣English alphabet∣=26
∣Decimal numeral system∣=10
If repetitions are allowed, then
Car license plates=26⋅26⋅26⋅10⋅10=1757600
If repetitions are not allowed, then
Car license plates=26⋅25⋅24⋅10⋅9=1404000
How many 7-digit phone numbers are possible, assuming that the first digit can’t be a 0 or a 1?
But, a sequence n and sub-sequence r together can simplify as n−r+1.
CEG sub-sequence, ∣{C,E,G}∣=3
(letter,letter,letter,letter,letter),∣sequence∣=5, where CEG can be 3 distinct positions.
But, We'll convert to 5−3+1=3 size sequence, such that
CEG sub-sequence, ∣{CEG}∣=1
(letter,letter,letter),∣sequence∣=3, where CEG can be 3 distinct positions.
Thus, ∣Strings∣=((n−r)+1)∣StringCEG∣=36
Two chess players, A and B, are going to play 7 games. Each game has three possible outcomes: a win for A (which is a loss for B), a draw (tie), and a loss for A (which is a win for B). A win is worth 1 point, a draw is worth 0.5 points, and a loss is worth 0 points.
How many possible outcomes for the individual games are there, such that overall player A ends up with 3 wins, 2 draws, and 2 losses?
∣All outcomes where A wins by a score of 4∣=∣A1∣+∣A2∣+∣A3∣+∣A4∣=(47)+(37)(24)+(27)(45)+(17)=357
Now assume that they are playing a best-of-7 match, where the match will end when either player has 4 points or when 7 games have been played, whichever is first. For example, if after 6 games the score is 4 to 2 in favor of A, then A wins the match and they don't play a 7th game. How many possible outcomes for the individual games are there, such that the match lasts for 7 games and A wins by a score of 4 to 3?
267
Addition Principle or Sum Rule
If A1,A2,...,An are disjoint sets, then:
∣A1∪A1∪...∪An∣=∣A1∣+∣A2∣+...+∣An∣
Inclusion–exclusion principle
If X and Y are finite sets, then
∣X∪Y∣=∣X∣+∣Y∣−∣X∩Y∣
The k-to-1 rule or division rule
If B is a finite set and f : A → B maps precisely k items of A to every item of B, then A has k times as many items as B.
The division rule is a common way to ignore “unimportant” differences when you are counting
things. You can count distinct objects, and then use the division rule to “merge” the ones that are
not significantly different.
Permutations
A permutation of n things taken r at a time, written P(n,r), is an arrangement in a row of r things, taken from a set of n distinct things. Order matters.
In your problem, (a0,a1,a2)=(a1,a2,a0)?
Example: How many permutations of the letters ABCDEF contain the letters DEF together in anyorder?
Counting Subsets or combinations
A combination of n things taken r at a time, written C(n,r) or n r (“n choose r”) is any subset of r things from n things. Order makes no difference.
In your problem, (a0,a1,a2)=(a1,a2,a0)?
The key points to remember in this section are that a permutation takes order into account and a combination does not take order into account. Thus, a key to solving counting problems is to determine whether we are counting ordered or unordered items.
Counting subsets=Group by repetitionsCouting
Combinatorial Proofs
n(k−1n−1)=k(kn)
Vandermonde's identity
(km+n)=∑j=0k(jm)(k−jn)
The Binomial Theorem
Pascal’s Triangle Identity
Worked examples
How many ways are there to split a dozen people into 3 teams, where one team has 2 people, and the other two teams have 5 people each?
teams={((x1,x2),(y1,y2,y3,y4,y5),(z1,z2,z3,z4,z5))∣x1∈[1,12],x2∈[1,11],y1∈[1,10],...,z1∈[1,5],...z5∈[1],but order doesn’t matter, such that sequence two sequences with same elements are equals}
For example, (x1,x2)=(x2,x1) or (y1,y2,y3,y4,y5)=(z1,z2,z3,z4,z5). First one references to itself, the second one references to teams by that group by 2.
∣teams∣=Group by repetitionsteam1×team2×team3=Group by repetitions(212)(510)(55)=2!(212)(510)=8316
How many ways are there to split a dozen people into 3 teams, where each team has 4 people?
teams={((x1,x2,x3,x4),(y1,y2,y3,y4),(z1,z2,z3,z4))∣x1∈[1,12],x2∈[1,11],...,y1∈[1,8],...,z1∈[1,4],...,z4∈[1],but order doesn’t matter}
For example(y1,y2,y3,y4)=(z1,z2,z3,z4). First one eferences to teams by that group by 3.
∣teams∣=Group by repetitionsteam1×team2×team3=Group by repetitions(412)(48)(44)=3!(412)(48)=8316
The Pigeonhole Principle
Generating Functions
Finite calculus
Recurrences relations, sequences, and subsequences, or difference equations
Worked examples
Define a sequence iteratively by s1=3 and sn=3+sn−1
A graph G is a par if sets (V,E) where V is called vertices (or nodes) and a set E of edges (or arcs) such that each edge e∈E is associated with a pair of vertices.
Definiciones
Grafo o red -Graph-
G=(V,E), donde V son los vértices y E las aristas.
Loop
Una arista conectada a un vértice a sí misma.
Directed
Walk
Cycle
Circuit
Open walk
Closed walk
Definiciones
Concepto
Def.
Ejemplo
Representación
Observaciones
Graph, Network
G = (V, E), donde V son los vertices y E las aristas.
Loop
Una arista conectada a un vertice a si mismo.
Directed
Cada arista tiene una direccion.
Walk
Una sequencia v0v1v2...
Cycle
Circuit
Open walk
Walk donde el primer y el ultimo vertice son distintos.
Closed walk
Walk donde el primer y el ultimo vertice son iguales.
Trail
Un walk abierto con distintas aristas.
Path
Un walk abierto con distintos vertices y aristas.
Todos los path son trials.
Euler Trail
Un trial que incluye todas las aristas del grafo, esto es, en el trial cada arista aparece exactamente una sola vez.
Connected
Un grafo donde existe un path entre cualquier par de de vertices.
Tour
Closed Walk que incluye todos las aristas al menos una vez.
Euler Tour o Eulerian Circuit
Tour donde cada arista es incluida una unica vez. Asi, es un Euler Trial cerrado.
Otra def:
Un tour de Euler de un grafo dirigido fuertemente conectado G = (V, E) es un ciclo que atraviesa cada arista de G exactamente una vez, aunque podría visitar los vértices en más de una ocasión.
Eulerian
Eulerian es un grafo que tiene un Euler Tour
Component
Un maximo conectado subgrafo.
Tree
Un conectado subgrafo.
Free tree
Un arbol con ninguna raiz.
DAG
Grafo aciclico dirigido.
Eulerian -Tour de Euler, ciclo euleriano, camino de Euler-
Un tour de Euler de un grafo dirigido fuertemente conectado G = (V, E) es un ciclo que atraviesa cada arista de G exactamente una vez, aunque podría visitar los vértices en más de una ocasión.
Hamiltonian
Grafo con un ciclo visitando cada vertice una vez.
Cut -corte-
Conjunto de vertices donde cada remoción incrementa el numero de componentes.
Cut-set
El minimo corte.
Cut-edge
El tamano de un corte.
k-Connected
Un grafo conectado con la remoción de k-1 vertices.
k-Tough
∀S⊆V,S=∅ we have kc(G−S)≤∣S∣
k-Regular
Un grafo donde todos los vertices tienen grado k.
k-Factor
Un k-regular esparza un subgrafo.
Matching
Un conjunto de aristas, no pares que no tienen adjuntos.
Clique
Un conjunto de vertices que son todos adjuntos.
Ind. set
Un conjunto de vertices donde ninguno es adjunto.
Vertex cover
Un conjunto de vertices el cual cubre todos las aristas.