SlideShare uma empresa Scribd logo
1 de 56
Baixar para ler offline
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/

Mais conteúdo relacionado

Mais procurados

Triple product of vectors
Triple product of vectorsTriple product of vectors
Triple product of vectors
guest581a478
 
Lecture 4 (27)
Lecture 4 (27)Lecture 4 (27)
Lecture 4 (27)
Basel Samhouri
 

Mais procurados (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
 

Destaque

Parabola de los_asesinos
Parabola de los_asesinosParabola de los_asesinos
Parabola de los_asesinos
Camilo Acosta
 
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
Huellas Literarias
 
Sitio y programa
Sitio y programaSitio y programa
Sitio y programa
arq-rss
 

Destaque (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
 

Semelhante a 04 - Sets

Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on sets
Rahul Avicii
 
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 873503264
yangrong
 

Semelhante 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
 

Mais de Tudor Girba

Mais 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

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

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