SlideShare ist ein Scribd-Unternehmen logo
1 von 56
Downloaden Sie, um offline zu lesen
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/

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (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
 

Andere mochten auch

#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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Kürzlich hochgeladen (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

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