SlideShare una empresa de Scribd logo
1 de 56
Descargar para leer sin conexión
Logic
reloaded
www.tudorgirba.com
What exactly is logic?
What exactly is logic?
the study of the principles of correct reasoning
Wax on … wax off … these are the basics
http://www.youtube.com/watch?v=3PycZtfns_U
Sets
www.tudorgirba.com
computer
information information
computation
Set
A set is a group of objects.
Set
A set is a group of objects.
{10, 23, 32}
Set
A set is a group of objects.
{10, 23, 32}
N = {0, 1, 2, … }
Set
A set is a group of objects.
{10, 23, 32}
N = {0, 1, 2, … }
Z = {… , -2, -1, 0, 1, 2, … }
Set
A set is a group of objects.
{10, 23, 32}
N = {0, 1, 2, … }
Z = {… , -2, -1, 0, 1, 2, … }
Ø empty set
Set
A set is a group of objects.
{10, 23, 32}
N = {0, 1, 2, … }
Z = {… , -2, -1, 0, 1, 2, … }
Ø
U
empty set
universe
Set
A set is a group of objects.
{10, 23, 32}
N = {0, 1, 2, … }
Z = {… , -2, -1, 0, 1, 2, … }
Ø
U
empty set
universe
Membership
a is a member of set A
Set
A set is a group of objects.
{10, 23, 32}
N = {0, 1, 2, … }
Z = {… , -2, -1, 0, 1, 2, … }
10 ∈ {10, 23, 32}
Ø
U
empty set
universe
Membership
a is a member of set A
Set
A set is a group of objects.
{10, 23, 32}
N = {0, 1, 2, … }
Z = {… , -2, -1, 0, 1, 2, … }
10 ∈ {10, 23, 32}
-1 ∉ N
Ø
U
empty set
universe
Membership
a is a member of set A
Subset A⊆B
Every member of A is also an element of B.
Subset A⊆B
∀x:: x∈A x∈B
Every member of A is also an element of B.
Subset A⊆B
∀x:: x∈A x∈B
∅ ⊆ A.
A ⊆ A.
A = B A ⊆ B ∧ B ⊆ A.
Every member of A is also an element of B.
Subset A⊆B
∀x:: x∈A x∈B
∅ ⊆ A.
A ⊆ A.
A = B A ⊆ B ∧ B ⊆ A.
Proper subset A⊂B
A is a subset of B and not equal to B.
Every member of A is also an element of B.
Subset A⊆B
∀x:: x∈A x∈B
∅ ⊆ A.
A ⊆ A.
A = B A ⊆ B ∧ B ⊆ A.
Proper subset A⊂B
∀x:: A⊆B ∧ A≠B
A is a subset of B and not equal to B.
Every member of A is also an element of B.
Union A∪B
∀x:: x∈A ∨ x∈B
A∪B={ x | x∈A or x∈B }
Union A∪B
∀x:: x∈A ∨ x∈B
A∪B={ x | x∈A or x∈B }
Union A∪B
∀x:: x∈A ∨ x∈B
A∪B={ x | x∈A or x∈B }
A ∪ B = B ∪ A.
A ∪ (B ∪ C) = (A ∪ B) ∪ C.
A ⊆ (A ∪ B).
A ∪ A = A.
A ∪ ∅ = A.
A ⊆ B A ∪ B = B.
Intersection A∩B
∀x:: x∈A ∧ x∈B
A∩B={ x | x∈A and x∈B }
Intersection A∩B
∀x:: x∈A ∧ x∈B
A∩B={ x | x∈A and x∈B }
Intersection A∩B
∀x:: x∈A ∧ x∈B
A∩B={ x | x∈A and x∈B }
A ∩ B = B ∩ A.
A ∩ (B ∩ C) = (A ∩ B) ∩ C.
A ∩ B ⊆ A.
A ∩ A = A.
A ∩ ∅ = ∅.
A ⊆ B A ∩ B = A.
Complements AB, A’
∀x:: x∈A ∧ x∉B
AB={ x | x∈A and x∉B }
Complements AB, A’
∀x:: x∈A ∧ x∉B
AB={ x | x∈A and x∉B }
A  B ≠ B  A.
A ∪ A′ = U.
A ∩ A′ = ∅.
(A′)′ = A.
A  A = ∅.
U′ = ∅.
∅′ = U.
A  B = A ∩ B′.
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ ∅ = ∅
A ∪ U = U
Zero elements
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ ∅ = ∅
A ∪ U = U
Zero elements
A ∩ A = A
A ∪ A = A
Idempotence
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ ∅ = ∅
A ∪ U = U
Zero elements
A ∩ A = A
A ∪ A = A
Idempotence
A ∪ B = B ∪ A
A ∩ B = B ∩ A
Commutativity
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ ∅ = ∅
A ∪ U = U
Zero elements
A ∩ A = A
A ∪ A = A
Idempotence
A ∪ B = B ∪ A
A ∩ B = B ∩ A
Commutativity
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∪ (B ∪ C) = (A ∪ B) ∪ C
Associativity
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ ∅ = ∅
A ∪ U = U
Zero elements
A ∩ A = A
A ∪ A = A
Idempotence
A ∪ B = B ∪ A
A ∩ B = B ∩ A
Commutativity
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∪ (B ∪ C) = (A ∪ B) ∪ C
Associativity
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
Distributivity
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ ∅ = ∅
A ∪ U = U
Zero elements
A ∩ A = A
A ∪ A = A
Idempotence
A ∩ A’ = ∅
A ∪ A’ = U
Complement
A ∪ B = B ∪ A
A ∩ B = B ∩ A
Commutativity
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∪ (B ∪ C) = (A ∪ B) ∪ C
Associativity
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
Distributivity
Similar to boolean algebra
a ∧ 1 = a
a ∨ 0 = a
Neutral elements
a ∧ 0 = 0
a ∨ 1 = 1
Zero elements
a ∧ a = a
a ∨ a = a
Idempotence
a ∧ ¬ a = 0
a ∨ ¬ a = 1
Negation
a ∨ b = b ∨ a
a ∧ b = b ∧ a
Commutativity
a ∧ (b ∧ c) = (a ∧ b) ∧ c
a ∨ (b ∨ c) = (a ∨ b) ∨ c
Associativity
a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c)
a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c)
Distributivity
A ∩ U = A
A ∪ ∅ = A
Neutral elements
A ∩ ∅ = ∅
A ∪ U = U
Zero elements
A ∩ A = A
A ∪ A = A
Idempotence
A ∩ A’ = ∅
A ∪ A’ = U
Complement
A ∪ B = B ∪ A
A ∩ B = B ∩ A
Commutativity
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∪ (B ∪ C) = (A ∪ B) ∪ C
Associativity
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
Distributivity
A ∩ U = A A ∪ B = B ∪ A
A ∪ ∅ = A
A ∩ ∅ = ∅
A ∪ U = U
A ∩ A = A
A ∪ A = A
A ∩ A’ = ∅
A ∪ A’ = U
Neutral elements
Zero elements
Idempotence
Complement
A ∩ (B ∩ C) = (A ∩ B) ∩ C
A ∩ B = B ∩ A
A ∪ (B ∪ C) = (A ∪ B) ∪ C
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
(A ∩ B)’ = (A’) ∪ (B’)
(A ∪ B)’ = (A’) ∩ (B’)
Commutativity
Associativity
Distributivity
DeMorgan’s
A ⊆ A.
A ⊆ B ∧ B ⊆ A A = B.
A ⊆ B ∧ B ⊆ C A ⊆ C
Reflexivity
Anti-symmetry
Transitivity
Scissors
Paper
Stone
Scissors
Paper
Stone
beats
beats
beats
Scissors
Paper
Stone
beats
beats
beats
Scissors
Paper
Stone
beats
beats
beats
beats Scissors Paper Stone
Scissors FALSE TRUE FALSE
Paper FALSE FALSE TRUE
Stone TRUE FALSE FALSE
Scissors
Paper
Stone
beats
beats
beats
beats Scissors Paper Stone
Scissors FALSE TRUE FALSE
Paper FALSE FALSE TRUE
Stone TRUE FALSE FALSE
Scissors
Paper
Stone
beats
beats
beats
beats Scissors Paper Stone
Scissors FALSE TRUE FALSE
Paper FALSE FALSE TRUE
Stone TRUE FALSE FALSE
Scissors
Paper
Stone
beats
beats
beats
beats Scissors Paper Stone
Scissors FALSE TRUE FALSE
Paper FALSE FALSE TRUE
Stone TRUE FALSE FALSE
beats Scissors Paper Stone
Scissors FALSE TRUE FALSE
Paper FALSE FALSE TRUE
Stone TRUE FALSE FALSE
beats = {(Scissors, Paper),
(Paper, Stone),
(Stone, Scissors)}
beats Scissors Paper Stone
Scissors FALSE TRUE FALSE
Paper FALSE FALSE TRUE
Stone TRUE FALSE FALSE
beats = {(Scissors, Paper),
(Paper, Stone),
(Stone, Scissors)}
beats ⊆ {Scissor, Paper, Stone} x
{Scissor, Paper, Stone}
Cartesian product AxB
AxB={ (a,b) | a∈A and b∈B }
Cartesian product AxB
AxB={ (a,b) | a∈A and b∈B }
A × ∅ = ∅.
A × (B ∪ C) = (A × B) ∪ (A × C).
(A ∪ B) × C = (A × C) ∪ (B × C).
N-ary Relation
A1, A2, ..., An
R ⊆ A1 x A2 x...x An
N-ary Relation
A1, A2, ..., An
R ⊆ A1 x A2 x...x An
Binary Relation
N-ary Relation
A1, A2, ..., An
R ⊆ A1 x A2 x...x An
Binary Relation
A1, A2
R ⊆ A1 x A2
(a,b) ∈ R
aRb
N-ary Relation
A1, A2, ..., An
R ⊆ A1 x A2 x...x An
Binary Relation
A1, A2
R ⊆ A1 x A2
(a,b) ∈ R
aRb
Tudor Gîrba
www.tudorgirba.com
creativecommons.org/licenses/by/3.0/

Más contenido relacionado

La actualidad más candente

La actualidad más candente (10)

Dot & cross product of vectors
Dot & cross product of vectorsDot & cross product of vectors
Dot & cross product of vectors
 
Probability and Entanglement
Probability and EntanglementProbability and Entanglement
Probability and Entanglement
 
Formulario matemático
Formulario matemáticoFormulario matemático
Formulario matemático
 
Formulario matemático
Formulario matemático Formulario matemático
Formulario matemático
 
Introduction to Mathematical Probability
Introduction to Mathematical ProbabilityIntroduction to Mathematical Probability
Introduction to Mathematical Probability
 
Triple product of vectors
Triple product of vectorsTriple product of vectors
Triple product of vectors
 
Lecture 4 (27)
Lecture 4 (27)Lecture 4 (27)
Lecture 4 (27)
 
Vectors and Kinematics
Vectors and KinematicsVectors and Kinematics
Vectors and Kinematics
 
March09 March13
March09 March13March09 March13
March09 March13
 
Calc 5.2b
Calc 5.2bCalc 5.2b
Calc 5.2b
 

Destacado

#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15
#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15
#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15Brussels, Belgium
 
Parabola de los_asesinos
Parabola de los_asesinosParabola de los_asesinos
Parabola de los_asesinosCamilo Acosta
 
Ensayo diseño grafico
Ensayo diseño graficoEnsayo diseño grafico
Ensayo diseño graficoAnggyMendoza
 
Darwin Core extension for germplasm (11th December 2013)
Darwin Core extension for germplasm (11th December 2013)Darwin Core extension for germplasm (11th December 2013)
Darwin Core extension for germplasm (11th December 2013)Dag Endresen
 
Boletin no 3 direccion nacional de derecho de autor
Boletin no 3 direccion nacional de derecho de autorBoletin no 3 direccion nacional de derecho de autor
Boletin no 3 direccion nacional de derecho de autorHuellas Literarias
 
Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)
Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)
Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)Movimento Irredentista Italiano
 
Presentación daniel villalba
Presentación daniel villalbaPresentación daniel villalba
Presentación daniel villalbaDaniel Villalba
 
Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...
Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...
Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...wepc2016
 
Game and watch for sale Dec 2015
Game and watch for sale Dec 2015Game and watch for sale Dec 2015
Game and watch for sale Dec 2015Kestrel Lee
 
Net$ync II Air Compressor Conductor System
Net$ync II Air Compressor Conductor SystemNet$ync II Air Compressor Conductor System
Net$ync II Air Compressor Conductor SystemJaime Burkhard
 
Sitio y programa
Sitio y programaSitio y programa
Sitio y programaarq-rss
 
Psicología. Revisión Septiembre 2014
Psicología. Revisión Septiembre 2014Psicología. Revisión Septiembre 2014
Psicología. Revisión Septiembre 2014euroamericanapr
 
Ciudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, Argentina
Ciudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, ArgentinaCiudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, Argentina
Ciudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, ArgentinaPedro Ylarri
 

Destacado (20)

#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15
#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15
#SPW13 - QUIONNE entrepreneurship keynote presentation 2016-10-15
 
Parabola de los_asesinos
Parabola de los_asesinosParabola de los_asesinos
Parabola de los_asesinos
 
ADITYA.NO
ADITYA.NOADITYA.NO
ADITYA.NO
 
Ensayo diseño grafico
Ensayo diseño graficoEnsayo diseño grafico
Ensayo diseño grafico
 
Construimos cometas
Construimos cometasConstruimos cometas
Construimos cometas
 
Darwin Core extension for germplasm (11th December 2013)
Darwin Core extension for germplasm (11th December 2013)Darwin Core extension for germplasm (11th December 2013)
Darwin Core extension for germplasm (11th December 2013)
 
Que es la estimulación temprana
Que es la estimulación tempranaQue es la estimulación temprana
Que es la estimulación temprana
 
Fisiologia dentomaxilar
Fisiologia dentomaxilarFisiologia dentomaxilar
Fisiologia dentomaxilar
 
Boletin no 3 direccion nacional de derecho de autor
Boletin no 3 direccion nacional de derecho de autorBoletin no 3 direccion nacional de derecho de autor
Boletin no 3 direccion nacional de derecho de autor
 
Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)
Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)
Attilio Tamaro - L'Adriatico - Golfo d'Italia. L'italianità di Trieste (1884)
 
Presentación daniel villalba
Presentación daniel villalbaPresentación daniel villalba
Presentación daniel villalba
 
Swiss-edu ID / ORCID /SNF
Swiss-edu ID / ORCID /SNFSwiss-edu ID / ORCID /SNF
Swiss-edu ID / ORCID /SNF
 
Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...
Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...
Day1: Launch of the World e-Parliament Report 2016, Mr. Andy Williamson, auth...
 
Game and watch for sale Dec 2015
Game and watch for sale Dec 2015Game and watch for sale Dec 2015
Game and watch for sale Dec 2015
 
Net$ync II Air Compressor Conductor System
Net$ync II Air Compressor Conductor SystemNet$ync II Air Compressor Conductor System
Net$ync II Air Compressor Conductor System
 
VDC-Jahresbericht 2010
VDC-Jahresbericht 2010VDC-Jahresbericht 2010
VDC-Jahresbericht 2010
 
Sitio y programa
Sitio y programaSitio y programa
Sitio y programa
 
Psicología. Revisión Septiembre 2014
Psicología. Revisión Septiembre 2014Psicología. Revisión Septiembre 2014
Psicología. Revisión Septiembre 2014
 
One 2 One email marketing
One 2 One email marketingOne 2 One email marketing
One 2 One email marketing
 
Ciudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, Argentina
Ciudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, ArgentinaCiudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, Argentina
Ciudad Periódica :: Media Kit 2010 :: Ciudad de Buenos Aires, Argentina
 

Similar a 04 - Sets

Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture hVlad Patryshev
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on setsRahul Avicii
 
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualDiscrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualTallulahTallulah
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answersSamet öztoprak
 
CMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operationsallyn joy calcaben
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Manik Bhola
 
Set theory self study material
Set theory  self study materialSet theory  self study material
Set theory self study materialDrATAMILARASIMCA
 
Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Kwonpyo Ko
 
Lect1 No 873503264
Lect1 No 873503264Lect1 No 873503264
Lect1 No 873503264yangrong
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdfAneeshRenu
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdfMridulDhamija
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfMuhammadUmerIhtisham
 

Similar a 04 - Sets (20)

Set Operations
Set OperationsSet Operations
Set Operations
 
Sets.pdf
Sets.pdfSets.pdf
Sets.pdf
 
Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture h
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on sets
 
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualDiscrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answers
 
Sets
SetsSets
Sets
 
CMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operations
 
set theory --.pptx
set theory --.pptxset theory --.pptx
set theory --.pptx
 
Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)Sets in Maths (Complete Topic)
Sets in Maths (Complete Topic)
 
Set theory self study material
Set theory  self study materialSet theory  self study material
Set theory self study material
 
Ch1 sets and_logic(1)
Ch1 sets and_logic(1)Ch1 sets and_logic(1)
Ch1 sets and_logic(1)
 
Lect1 No 873503264
Lect1 No 873503264Lect1 No 873503264
Lect1 No 873503264
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
 
Per1 himpunan&fungsiumn
Per1 himpunan&fungsiumnPer1 himpunan&fungsiumn
Per1 himpunan&fungsiumn
 
Sets
SetsSets
Sets
 
Chpt 2-sets v.3
Chpt 2-sets v.3Chpt 2-sets v.3
Chpt 2-sets v.3
 
Discrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdfDiscrete Structure Lecture #7 & 8.pdf
Discrete Structure Lecture #7 & 8.pdf
 

Más de Tudor Girba

Beyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalismBeyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalismTudor Girba
 
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...Tudor Girba
 
Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)Tudor Girba
 
Don't demo facts. Demo stories!
Don't demo facts. Demo stories!Don't demo facts. Demo stories!
Don't demo facts. Demo stories!Tudor Girba
 
Humane assessment on cards
Humane assessment on cardsHumane assessment on cards
Humane assessment on cardsTudor Girba
 
Underneath Scrum: Reflective Thinking
Underneath Scrum: Reflective ThinkingUnderneath Scrum: Reflective Thinking
Underneath Scrum: Reflective ThinkingTudor Girba
 
1800+ TED talks later
1800+ TED talks later1800+ TED talks later
1800+ TED talks laterTudor Girba
 
Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)Tudor Girba
 
Humane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development roomHumane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development roomTudor Girba
 
Moose: how to solve real problems without reading code
Moose: how to solve real problems without reading codeMoose: how to solve real problems without reading code
Moose: how to solve real problems without reading codeTudor Girba
 
Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)Tudor Girba
 
The emergent nature of software systems
The emergent nature of software systemsThe emergent nature of software systems
The emergent nature of software systemsTudor Girba
 
Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)Tudor Girba
 
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)Tudor Girba
 
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)Tudor Girba
 
Demo-driven innovation teaser
Demo-driven innovation teaserDemo-driven innovation teaser
Demo-driven innovation teaserTudor Girba
 
Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)Tudor Girba
 
Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)Tudor Girba
 
Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011Tudor Girba
 

Más de Tudor Girba (20)

Beyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalismBeyond software evolution: Software environmentalism
Beyond software evolution: Software environmentalism
 
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
Software craftsmanship meetup (Zurich 2015) on solving real problems without ...
 
GT Spotter
GT SpotterGT Spotter
GT Spotter
 
Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)Don't demo facts. Demo stories! (handouts)
Don't demo facts. Demo stories! (handouts)
 
Don't demo facts. Demo stories!
Don't demo facts. Demo stories!Don't demo facts. Demo stories!
Don't demo facts. Demo stories!
 
Humane assessment on cards
Humane assessment on cardsHumane assessment on cards
Humane assessment on cards
 
Underneath Scrum: Reflective Thinking
Underneath Scrum: Reflective ThinkingUnderneath Scrum: Reflective Thinking
Underneath Scrum: Reflective Thinking
 
1800+ TED talks later
1800+ TED talks later1800+ TED talks later
1800+ TED talks later
 
Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)Software assessment by example (lecture at the University of Bern)
Software assessment by example (lecture at the University of Bern)
 
Humane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development roomHumane assessment: Taming the elephant from the development room
Humane assessment: Taming the elephant from the development room
 
Moose: how to solve real problems without reading code
Moose: how to solve real problems without reading codeMoose: how to solve real problems without reading code
Moose: how to solve real problems without reading code
 
Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)Software Environmentalism (ECOOP 2014 Keynote)
Software Environmentalism (ECOOP 2014 Keynote)
 
The emergent nature of software systems
The emergent nature of software systemsThe emergent nature of software systems
The emergent nature of software systems
 
Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)Presenting is storytelling at Uni Zurich - slides (2014-03-05)
Presenting is storytelling at Uni Zurich - slides (2014-03-05)
 
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
Presenting is storytelling at Uni Zurich - handouts (2014-03-05)
 
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
Underneath Scrum: Reflective Thinking (talk at Scrum Breakfast Bern, 2013)
 
Demo-driven innovation teaser
Demo-driven innovation teaserDemo-driven innovation teaser
Demo-driven innovation teaser
 
Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)Software assessment essentials (lecture at the University of Bern 2013)
Software assessment essentials (lecture at the University of Bern 2013)
 
Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)Demo-driven innovation (University of Zurich, June 2013)
Demo-driven innovation (University of Zurich, June 2013)
 
Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011Humane assessment with Moose at GOTO Aarhus 2011
Humane assessment with Moose at GOTO Aarhus 2011
 

Último

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 

Último (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

04 - Sets

  • 3. What exactly is logic? the study of the principles of correct reasoning
  • 4. Wax on … wax off … these are the basics http://www.youtube.com/watch?v=3PycZtfns_U
  • 7. Set A set is a group of objects.
  • 8. Set A set is a group of objects. {10, 23, 32}
  • 9. Set A set is a group of objects. {10, 23, 32} N = {0, 1, 2, … }
  • 10. Set A set is a group of objects. {10, 23, 32} N = {0, 1, 2, … } Z = {… , -2, -1, 0, 1, 2, … }
  • 11. Set A set is a group of objects. {10, 23, 32} N = {0, 1, 2, … } Z = {… , -2, -1, 0, 1, 2, … } Ø empty set
  • 12. Set A set is a group of objects. {10, 23, 32} N = {0, 1, 2, … } Z = {… , -2, -1, 0, 1, 2, … } Ø U empty set universe
  • 13. Set A set is a group of objects. {10, 23, 32} N = {0, 1, 2, … } Z = {… , -2, -1, 0, 1, 2, … } Ø U empty set universe Membership a is a member of set A
  • 14. Set A set is a group of objects. {10, 23, 32} N = {0, 1, 2, … } Z = {… , -2, -1, 0, 1, 2, … } 10 ∈ {10, 23, 32} Ø U empty set universe Membership a is a member of set A
  • 15. Set A set is a group of objects. {10, 23, 32} N = {0, 1, 2, … } Z = {… , -2, -1, 0, 1, 2, … } 10 ∈ {10, 23, 32} -1 ∉ N Ø U empty set universe Membership a is a member of set A
  • 16. Subset A⊆B Every member of A is also an element of B.
  • 17. Subset A⊆B ∀x:: x∈A x∈B Every member of A is also an element of B.
  • 18. Subset A⊆B ∀x:: x∈A x∈B ∅ ⊆ A. A ⊆ A. A = B A ⊆ B ∧ B ⊆ A. Every member of A is also an element of B.
  • 19. Subset A⊆B ∀x:: x∈A x∈B ∅ ⊆ A. A ⊆ A. A = B A ⊆ B ∧ B ⊆ A. Proper subset A⊂B A is a subset of B and not equal to B. Every member of A is also an element of B.
  • 20. Subset A⊆B ∀x:: x∈A x∈B ∅ ⊆ A. A ⊆ A. A = B A ⊆ B ∧ B ⊆ A. Proper subset A⊂B ∀x:: A⊆B ∧ A≠B A is a subset of B and not equal to B. Every member of A is also an element of B.
  • 21. Union A∪B ∀x:: x∈A ∨ x∈B A∪B={ x | x∈A or x∈B }
  • 22. Union A∪B ∀x:: x∈A ∨ x∈B A∪B={ x | x∈A or x∈B }
  • 23. Union A∪B ∀x:: x∈A ∨ x∈B A∪B={ x | x∈A or x∈B } A ∪ B = B ∪ A. A ∪ (B ∪ C) = (A ∪ B) ∪ C. A ⊆ (A ∪ B). A ∪ A = A. A ∪ ∅ = A. A ⊆ B A ∪ B = B.
  • 24. Intersection A∩B ∀x:: x∈A ∧ x∈B A∩B={ x | x∈A and x∈B }
  • 25. Intersection A∩B ∀x:: x∈A ∧ x∈B A∩B={ x | x∈A and x∈B }
  • 26. Intersection A∩B ∀x:: x∈A ∧ x∈B A∩B={ x | x∈A and x∈B } A ∩ B = B ∩ A. A ∩ (B ∩ C) = (A ∩ B) ∩ C. A ∩ B ⊆ A. A ∩ A = A. A ∩ ∅ = ∅. A ⊆ B A ∩ B = A.
  • 27. Complements AB, A’ ∀x:: x∈A ∧ x∉B AB={ x | x∈A and x∉B }
  • 28. Complements AB, A’ ∀x:: x∈A ∧ x∉B AB={ x | x∈A and x∉B } A B ≠ B A. A ∪ A′ = U. A ∩ A′ = ∅. (A′)′ = A. A A = ∅. U′ = ∅. ∅′ = U. A B = A ∩ B′.
  • 29.
  • 30. A ∩ U = A A ∪ ∅ = A Neutral elements
  • 31. A ∩ U = A A ∪ ∅ = A Neutral elements A ∩ ∅ = ∅ A ∪ U = U Zero elements
  • 32. A ∩ U = A A ∪ ∅ = A Neutral elements A ∩ ∅ = ∅ A ∪ U = U Zero elements A ∩ A = A A ∪ A = A Idempotence
  • 33. A ∩ U = A A ∪ ∅ = A Neutral elements A ∩ ∅ = ∅ A ∪ U = U Zero elements A ∩ A = A A ∪ A = A Idempotence A ∪ B = B ∪ A A ∩ B = B ∩ A Commutativity
  • 34. A ∩ U = A A ∪ ∅ = A Neutral elements A ∩ ∅ = ∅ A ∪ U = U Zero elements A ∩ A = A A ∪ A = A Idempotence A ∪ B = B ∪ A A ∩ B = B ∩ A Commutativity A ∩ (B ∩ C) = (A ∩ B) ∩ C A ∪ (B ∪ C) = (A ∪ B) ∪ C Associativity
  • 35. A ∩ U = A A ∪ ∅ = A Neutral elements A ∩ ∅ = ∅ A ∪ U = U Zero elements A ∩ A = A A ∪ A = A Idempotence A ∪ B = B ∪ A A ∩ B = B ∩ A Commutativity A ∩ (B ∩ C) = (A ∩ B) ∩ C A ∪ (B ∪ C) = (A ∪ B) ∪ C Associativity A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) Distributivity
  • 36. A ∩ U = A A ∪ ∅ = A Neutral elements A ∩ ∅ = ∅ A ∪ U = U Zero elements A ∩ A = A A ∪ A = A Idempotence A ∩ A’ = ∅ A ∪ A’ = U Complement A ∪ B = B ∪ A A ∩ B = B ∩ A Commutativity A ∩ (B ∩ C) = (A ∩ B) ∩ C A ∪ (B ∪ C) = (A ∪ B) ∪ C Associativity A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) Distributivity
  • 37. Similar to boolean algebra a ∧ 1 = a a ∨ 0 = a Neutral elements a ∧ 0 = 0 a ∨ 1 = 1 Zero elements a ∧ a = a a ∨ a = a Idempotence a ∧ ¬ a = 0 a ∨ ¬ a = 1 Negation a ∨ b = b ∨ a a ∧ b = b ∧ a Commutativity a ∧ (b ∧ c) = (a ∧ b) ∧ c a ∨ (b ∨ c) = (a ∨ b) ∨ c Associativity a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c) a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c) Distributivity
  • 38. A ∩ U = A A ∪ ∅ = A Neutral elements A ∩ ∅ = ∅ A ∪ U = U Zero elements A ∩ A = A A ∪ A = A Idempotence A ∩ A’ = ∅ A ∪ A’ = U Complement A ∪ B = B ∪ A A ∩ B = B ∩ A Commutativity A ∩ (B ∩ C) = (A ∩ B) ∩ C A ∪ (B ∪ C) = (A ∪ B) ∪ C Associativity A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) Distributivity
  • 39. A ∩ U = A A ∪ B = B ∪ A A ∪ ∅ = A A ∩ ∅ = ∅ A ∪ U = U A ∩ A = A A ∪ A = A A ∩ A’ = ∅ A ∪ A’ = U Neutral elements Zero elements Idempotence Complement A ∩ (B ∩ C) = (A ∩ B) ∩ C A ∩ B = B ∩ A A ∪ (B ∪ C) = (A ∪ B) ∪ C A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) (A ∩ B)’ = (A’) ∪ (B’) (A ∪ B)’ = (A’) ∩ (B’) Commutativity Associativity Distributivity DeMorgan’s
  • 40. A ⊆ A. A ⊆ B ∧ B ⊆ A A = B. A ⊆ B ∧ B ⊆ C A ⊆ C Reflexivity Anti-symmetry Transitivity
  • 44. Scissors Paper Stone beats beats beats beats Scissors Paper Stone Scissors FALSE TRUE FALSE Paper FALSE FALSE TRUE Stone TRUE FALSE FALSE
  • 45. Scissors Paper Stone beats beats beats beats Scissors Paper Stone Scissors FALSE TRUE FALSE Paper FALSE FALSE TRUE Stone TRUE FALSE FALSE
  • 46. Scissors Paper Stone beats beats beats beats Scissors Paper Stone Scissors FALSE TRUE FALSE Paper FALSE FALSE TRUE Stone TRUE FALSE FALSE
  • 47. Scissors Paper Stone beats beats beats beats Scissors Paper Stone Scissors FALSE TRUE FALSE Paper FALSE FALSE TRUE Stone TRUE FALSE FALSE
  • 48. beats Scissors Paper Stone Scissors FALSE TRUE FALSE Paper FALSE FALSE TRUE Stone TRUE FALSE FALSE beats = {(Scissors, Paper), (Paper, Stone), (Stone, Scissors)}
  • 49. beats Scissors Paper Stone Scissors FALSE TRUE FALSE Paper FALSE FALSE TRUE Stone TRUE FALSE FALSE beats = {(Scissors, Paper), (Paper, Stone), (Stone, Scissors)} beats ⊆ {Scissor, Paper, Stone} x {Scissor, Paper, Stone}
  • 50. Cartesian product AxB AxB={ (a,b) | a∈A and b∈B }
  • 51. Cartesian product AxB AxB={ (a,b) | a∈A and b∈B } A × ∅ = ∅. A × (B ∪ C) = (A × B) ∪ (A × C). (A ∪ B) × C = (A × C) ∪ (B × C).
  • 52. N-ary Relation A1, A2, ..., An R ⊆ A1 x A2 x...x An
  • 53. N-ary Relation A1, A2, ..., An R ⊆ A1 x A2 x...x An Binary Relation
  • 54. N-ary Relation A1, A2, ..., An R ⊆ A1 x A2 x...x An Binary Relation A1, A2 R ⊆ A1 x A2 (a,b) ∈ R aRb
  • 55. N-ary Relation A1, A2, ..., An R ⊆ A1 x A2 x...x An Binary Relation A1, A2 R ⊆ A1 x A2 (a,b) ∈ R aRb