This document introduces some basic concepts in set theory. It defines a set as a structure representing an unordered collection of distinct objects. Set theory deals with operations on sets such as union, intersection, difference and relations between sets. It provides notations for sets and examples of basic properties of sets like equality, subsets, empty sets and infinite sets. The document also introduces concepts like cardinality, power sets, Cartesian products and Venn diagrams to represent relationships between sets.
Discrete Mathematics - Sets. ... He had defined a set as a collection of definite and distinguishable objects selected by the means of certain rules or description. Set theory forms the basis of several other fields of study like counting theory, relations, graph theory and finite state machines.
Discrete Mathematics - Sets. ... He had defined a set as a collection of definite and distinguishable objects selected by the means of certain rules or description. Set theory forms the basis of several other fields of study like counting theory, relations, graph theory and finite state machines.
Discrete Mathematics - Sets. ... He had defined a set as a collection of definite and distinguishable objects selected by the means of certain rules or description. Set theory forms the basis of several other fields of study like counting theory, relations, graph theory and finite state machines.
Discrete Mathematics - Sets. ... He had defined a set as a collection of definite and distinguishable objects selected by the means of certain rules or description. Set theory forms the basis of several other fields of study like counting theory, relations, graph theory and finite state machines.
Solving Quadratic Equation by Completing the Square.pptxDebbieranteErmac
Solving Quadratic Equation by Completing the Square is another method of solving quadratic equation when the equation cannot be solved using factoring and extracting the square root.
Matrices
CMSC 56 | Discrete Mathematical Structure for Computer Science
November 30, 2018
Instructor: Allyn Joy D. Calcaben
College of Arts & Sciences
University of the Philippines Visayas
Solving Quadratic Equation by Completing the Square.pptxDebbieranteErmac
Solving Quadratic Equation by Completing the Square is another method of solving quadratic equation when the equation cannot be solved using factoring and extracting the square root.
Matrices
CMSC 56 | Discrete Mathematical Structure for Computer Science
November 30, 2018
Instructor: Allyn Joy D. Calcaben
College of Arts & Sciences
University of the Philippines Visayas
A set is a structure, representing an unordered collection (group, plurality) of zero or more distinct (different) objects.
Set theory deals with operations between, relations among, and statements about sets
In mathematics, a set is defined as a collection of distinct, well-defined objects forming a group. There can be any number of items, be it a collection of whole numbers, months of a year, types of birds, and so on. Each item in the set is known as an element of the set. We use curly brackets while writing a set.
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
The programme is designed to render the students with a holistic education and deeper understanding of business tactics of global magnitude. We stress on conducting interactive study sessions which give birth to rational ideas and develop innovative thinking, live cases, e-learning and positive influence of our renowned guest speakers facilitates students’ abilities and aspirations. http://www.unitedworld.in/school-of-business/
The programme is designed to render the students with a holistic education and deeper understanding of business tactics of global magnitude. We stress on conducting interactive study sessions which give birth to rational ideas and develop innovative thinking, live cases, e-learning and positive influence of our renowned guest speakers facilitates students’ abilities and aspirations. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
UWSB offers Post Graduate courses at its Ahmedabad and Kolkata campuses. Ahmedabad campus, approved by AICTE, offers Post Graduate Diploma in Management (PGDM). Kolkata campus offers Post Graduate Programme in Management along with an option of AICTE approved Post Graduate Diploma in Management (PGDM) and/or MBA. Our programmes aim to create value-instilled potential leaders by incorporating higher-management functions. http://www.unitedworld.in/school-of-business/
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
What is the purpose of the Sabbath Law in the Torah. It is interesting to compare how the context of the law shifts from Exodus to Deuteronomy. Who gets to rest, and why?
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
3. 3
Introduction to Set Theory
• AA setset is a structure, representing anis a structure, representing an
unorderedunordered collection (group, plurality) ofcollection (group, plurality) of
zero or morezero or more distinctdistinct (different) objects.(different) objects.
• Set theory deals with operations between,Set theory deals with operations between,
relations among, and statements about sets.relations among, and statements about sets.
4. 4
Basic notations for sets
• For sets, we’ll use variablesFor sets, we’ll use variables SS,, TT,, UU, …, …
• We can denote a setWe can denote a set SS in writing by listing all ofin writing by listing all of
its elements in curly braces:its elements in curly braces:
– {a, b, c} is the set of whatever 3 objects are denoted by{a, b, c} is the set of whatever 3 objects are denoted by
a, b, c.a, b, c.
• SetSet builder notationbuilder notation: For any proposition: For any proposition PP((xx))
over any universe of discourse, {over any universe of discourse, {xx||PP((xx)} is)} is the setthe set
of all x such that P(x).of all x such that P(x).
e.g., {e.g., {xx || xx is an integer whereis an integer where xx>0 and>0 and xx<5 }<5 }
5. 5
Basic properties of sets
• Sets are inherentlySets are inherently unorderedunordered::
– No matter what objects a, b, and c denote,No matter what objects a, b, and c denote,
{a, b, c} = {a, c, b} = {b, a, c} ={a, b, c} = {a, c, b} = {b, a, c} =
{b, c, a} = {c, a, b} = {c, b, a}.{b, c, a} = {c, a, b} = {c, b, a}.
• All elements areAll elements are distinctdistinct (unequal);(unequal);
multiple listings make no difference!multiple listings make no difference!
– {a, b, c} = {a, a, b, a, b, c, c, c, c}.{a, b, c} = {a, a, b, a, b, c, c, c, c}.
– This set contains at most 3 elements!This set contains at most 3 elements!
6. 6
Definition of Set Equality
• Two sets are declared to be equalTwo sets are declared to be equal if and only ifif and only if
they containthey contain exactly the sameexactly the same elements.elements.
• In particular, it does not matterIn particular, it does not matter how the set ishow the set is
defined or denoted.defined or denoted.
• For example: The set {1, 2, 3, 4} =For example: The set {1, 2, 3, 4} =
{{xx || xx is an integer whereis an integer where xx>0 and>0 and xx<5 } =<5 } =
{{xx || xx is a positive integer whose squareis a positive integer whose square
is >0 and <25}is >0 and <25}
7. 7
Infinite Sets
• Conceptually, sets may beConceptually, sets may be infiniteinfinite ((i.e.,i.e., notnot
finitefinite, without end, unending)., without end, unending).
• Symbols for some special infinite sets:Symbols for some special infinite sets:
NN = {0, 1, 2, …} The= {0, 1, 2, …} The nnatural numbers.atural numbers.
ZZ = {…, -2, -1, 0, 1, 2, …} The= {…, -2, -1, 0, 1, 2, …} The iintegers.ntegers.
RR = The “= The “rreal” numbers, such aseal” numbers, such as
374.1828471929498181917281943125…374.1828471929498181917281943125…
• Infinite sets come in different sizes!Infinite sets come in different sizes!
9. 9
Basic Set Relations: Member of
• xx∈∈SS (“(“xx is inis in SS”)”) is the proposition that objectis the proposition that object xx isis
anan ∈∈lementlement oror membermember of setof set SS..
– e.g.e.g. 33∈∈NN,, “a”“a”∈∈{{xx || xx is a letter of the alphabet}is a letter of the alphabet}
• Can defineCan define set equalityset equality in terms ofin terms of ∈∈ relation:relation:
∀∀SS,,TT:: SS==TT ↔↔ ((∀∀xx:: xx∈∈SS ↔↔ xx∈∈TT))
“Two sets are equal“Two sets are equal iffiff they have all the samethey have all the same
members.”members.”
• xx∉∉SS ::≡≡ ¬¬((xx∈∈SS) “) “xx is not inis not in SS””
10. 10
The Empty Set
∀ ∅∅ (“null”, “the empty set”) is the unique set(“null”, “the empty set”) is the unique set
that contains no elements whatsoever.that contains no elements whatsoever.
∀ ∅∅ = {} = {= {} = {x|x|FalseFalse}}
• No matter the domain of discourse,No matter the domain of discourse,
we have the axiomwe have the axiom
¬∃¬∃xx:: xx∈∅∈∅..
11. 11
Subset and Superset Relations
• SS⊆⊆TT (“(“SS is a subset ofis a subset of TT”) means that every”) means that every
element ofelement of SS is also an element ofis also an element of TT..
• SS⊆⊆TT ⇔⇔ ∀∀xx ((xx∈∈SS →→ xx∈∈TT))
∀ ∅⊆∅⊆SS,, SS⊆⊆S.S.
• SS⊇⊇TT (“(“SS is a superset ofis a superset of TT”) means”) means TT⊆⊆SS..
• NoteNote S=TS=T ⇔⇔ SS⊆⊆TT∧∧ SS⊇⊇T.T.
• meansmeans ¬¬((SS⊆⊆TT),), i.e.i.e. ∃∃xx((xx∈∈SS ∧∧ xx∉∉TT))
TS /⊆
12. 12
Proper (Strict) Subsets & Supersets
• SS⊂⊂TT (“(“SS is a proper subset ofis a proper subset of TT”) means that”) means that
SS⊆⊆TT butbut .. Similar forSimilar for SS⊃⊃T.T.
ST /⊆
S
T
Venn Diagram equivalent of S⊂T
Example:
{1,2} ⊂
{1,2,3}
13. 13
Sets Are Objects, Too!
• The objects that are elements of a set mayThe objects that are elements of a set may
themselvesthemselves be sets.be sets.
• E.g.E.g. letlet SS={={xx || xx ⊆⊆ {1,2,3}}{1,2,3}}
thenthen SS={={∅∅,,
{1}, {2}, {3},{1}, {2}, {3},
{1,2}, {1,3}, {2,3},{1,2}, {1,3}, {2,3},
{1,2,3}}{1,2,3}}
• Note that 1Note that 1 ≠≠ {1}{1} ≠≠ {{1}} !!!!{{1}} !!!!
14. 14
Cardinality and Finiteness
• ||SS| (read “the| (read “the cardinalitycardinality ofof SS”) is a measure”) is a measure
of how many different elementsof how many different elements SS has.has.
• E.g.E.g., |, |∅∅|=0, |{1,2,3}| = 3, |{a,b}| = 2,|=0, |{1,2,3}| = 3, |{a,b}| = 2,
|{{1,2,3},{4,5}}| = ____|{{1,2,3},{4,5}}| = ____
• We sayWe say SS isis infiniteinfinite if it is notif it is not finitefinite..
• What are some infinite sets we’ve seen?What are some infinite sets we’ve seen?
15. 15
The Power Set Operation
• TheThe power setpower set P(P(SS) of a set) of a set SS is the set of allis the set of all
subsets ofsubsets of SS. P(. P(SS) = {) = {xx || xx⊆⊆SS}.}.
• EE..g.g. P({a,b}) = {P({a,b}) = {∅∅, {a}, {b}, {a,b}}., {a}, {b}, {a,b}}.
• Sometimes P(Sometimes P(SS) is written) is written 22SS
..
Note that for finiteNote that for finite SS, |P(, |P(SS)| = 2)| = 2||SS||
..
• It turns out that |P(It turns out that |P(NN)| > |)| > |NN|.|.
There are different sizes of infinite setsThere are different sizes of infinite sets!!
16. 16
Ordered n-tuples
• ForFor nn∈∈NN, an, an ordered n-tupleordered n-tuple or aor a sequencesequence
ofof length nlength n is written (is written (aa11,, aa22, …,, …, aann). The). The firstfirst
element iselement is aa11,, etc.etc.
• These are like sets, except that duplicatesThese are like sets, except that duplicates
matter, and the order makes a difference.matter, and the order makes a difference.
• Note (1, 2)Note (1, 2) ≠≠ (2, 1)(2, 1) ≠≠ (2, 1, 1).(2, 1, 1).
• Empty sequence, singlets, pairs, triples,Empty sequence, singlets, pairs, triples,
quadruples, quinquadruples, quintuplestuples, …,, …, nn-tuples.-tuples.
17. 17
Cartesian Products of Sets
• For setsFor sets AA,, BB, their, their Cartesian productCartesian product
AA××BB ::≡≡ {({(aa,, bb) |) | aa∈∈AA ∧∧ bb∈∈BB }.}.
• E.g.E.g. {a,b}{a,b}××{1,2} = {(a,1),(a,2),(b,1),(b,2)}{1,2} = {(a,1),(a,2),(b,1),(b,2)}
• Note that for finiteNote that for finite AA,, BB, |, |AA××BB|=||=|AA||||BB|.|.
• Note that the Cartesian product isNote that the Cartesian product is notnot
commutative:commutative: ¬∀¬∀ABAB:: AA××BB ==BB××AA..
• Extends toExtends to AA11 ×× AA22 ×× …… ×× AAnn......
18. 18
The Union Operator
• For setsFor sets AA,, BB, their, their unionunion AA∪∪BB is the setis the set
containing all elements that are either incontaining all elements that are either in AA,,
oror (“(“∨∨”) in”) in BB (or, of course, in both).(or, of course, in both).
• Formally,Formally, ∀∀AA,,BB:: AA∪∪BB = {= {xx || xx∈∈AA ∨∨ xx∈∈BB}.}.
• Note thatNote that AA∪∪BB contains all the elements ofcontains all the elements of
AA andand it contains all the elements ofit contains all the elements of BB::
∀∀AA,, BB: (: (AA∪∪BB ⊇⊇ AA)) ∧∧ ((AA∪∪BB ⊇⊇ BB))
20. 20
The Intersection Operator
• For setsFor sets AA,, BB, their, their intersectionintersection AA∩∩BB is theis the
set containing all elements that areset containing all elements that are
simultaneously insimultaneously in AA andand (“(“∧∧”) in”) in BB..
• Formally,Formally, ∀∀AA,,BB:: AA∩∩BB≡≡{{xx || xx∈∈AA ∧∧ xx∈∈BB}.}.
• Note thatNote that AA∩∩BB is a subset ofis a subset of AA andand it is ait is a
subset ofsubset of BB::
∀∀AA,, BB: (: (AA∩∩BB ⊆⊆ AA)) ∧∧ ((AA∩∩BB ⊆⊆ BB))
22. 22
Disjointedness
• Two setsTwo sets AA,, BB are calledare called
disjointdisjoint ((i.e.i.e., unjoined), unjoined)
iff their intersection isiff their intersection is
empty. (empty. (AA∩∩BB==∅∅))
• Example: the set of evenExample: the set of even
integers is disjoint withintegers is disjoint with
the set of odd integers.the set of odd integers.
Help, I’ve
been
disjointed!
23. 23
Inclusion-Exclusion Principle
• How many elements are inHow many elements are in AA∪∪BB??
||AA∪∪BB|| = |A|= |A| ++ |B||B| −− ||AA∩∩BB||
• Example:Example:
{2,3,5}{2,3,5}∪∪{3,5,7}{3,5,7} = {= {2,3,52,3,5,,3,5,73,5,7} =} ={2,3,5,7}{2,3,5,7}
24. 24
Set Difference
• For setsFor sets AA,, BB, the, the differencedifference of A and Bof A and B,,
writtenwritten AA−−BB, is the set of all elements that, is the set of all elements that
are inare in AA but notbut not BB..
• AA −− BB ::≡≡ {{xx || xx∈∈AA ∧∧ xx∉∉BB}}
== {{xx || ¬(¬( xx∈∈AA →→ xx∈∈BB )) }}
• Also called:Also called:
TheThe complementcomplement ofof BB with respect towith respect to AA..
25. 25
Set Difference Examples
• {1,2,3,4,5,6}{1,2,3,4,5,6} −− {2,3,5,7,9,11} ={2,3,5,7,9,11} =
______________________
• ZZ −− NN == {… , -1, 0, 1, 2, … }{… , -1, 0, 1, 2, … } −− {0, 1, … }{0, 1, … }
= {= {xx || xx is an integer but not a nat. #}is an integer but not a nat. #}
= {= {xx || xx is a negative integer}is a negative integer}
= {… , -3, -2, -1}= {… , -3, -2, -1}
{1,4,6}
26. 26
Set Difference - Venn Diagram
• AA--BB is what’s left afteris what’s left after BB
“takes a bite out of“takes a bite out of AA””
Set A Set B
Set
A−B
Chomp!
27. 27
Set Complements
• TheThe universe of discourseuniverse of discourse can itself becan itself be
considered a set, call itconsidered a set, call it UU..
• TheThe complementcomplement ofof AA, written , is the, written , is the
complement ofcomplement of AA w.r.t.w.r.t. UU,, i.e.i.e.,, it isit is UU−−A.A.
• E.g.,E.g., IfIf UU==NN,,
A
,...}7,6,4,2,1,0{}5,3{ =
28. 28
More on Set Complements
• An equivalent definition, whenAn equivalent definition, when UU is clear:is clear:
}|{ AxxA ∉=
A
U
A
29. 29
Set Identities
• Identity:Identity: AA∪∅∪∅==AA AA∩∩UU==AA
• Domination:Domination: AA∪∪U=U AU=U A∩∅∩∅==∅∅
• Idempotent:Idempotent: AA∪∪AA == A =A = AA∩∩AA
• Double complement:Double complement:
• Commutative:Commutative: AA∪∪B=BB=B∪∪A AA A∩∩B=BB=B∩∩AA
• Associative:Associative: AA∪∪((BB∪∪CC)=()=(AA∪∪BB))∪∪CC
AA∩∩((BB∩∩CC)=()=(AA∩∩BB))∩∩CC
AA =)(
30. 30
DeMorgan’s Law for Sets
• Exactly analogous to (and derivable from)Exactly analogous to (and derivable from)
DeMorgan’s Law for propositions.DeMorgan’s Law for propositions.
BABA
BABA
∪=∩
∩=∪
31. 31
Proving Set Identities
To prove statements about sets, of the formTo prove statements about sets, of the form
EE11 == EE22 (where(where EEs are set expressions), heres are set expressions), here
are three useful techniques:are three useful techniques:
• ProveProve EE11 ⊆⊆ EE22 andandEE22 ⊆⊆ EE11 separately.separately.
• Use logical equivalences.Use logical equivalences.
• Use aUse a membership tablemembership table..
32. 32
Method 1: Mutual subsets
Example: ShowExample: Show AA∩∩((BB∪∪CC)=()=(AA∩∩BB))∪∪((AA∩∩CC).).
• ShowShow AA∩∩((BB∪∪CC))⊆⊆((AA∩∩BB))∪∪((AA∩∩CC).).
– AssumeAssume xx∈∈AA∩∩((BB∪∪CC), & show), & show xx∈∈((AA∩∩BB))∪∪((AA∩∩CC).).
– We know thatWe know that xx∈∈AA, and either, and either xx∈∈BB oror xx∈∈C.C.
• Case 1:Case 1: xx∈∈BB. Then. Then xx∈∈AA∩∩BB, so, so xx∈∈((AA∩∩BB))∪∪((AA∩∩CC).).
• Case 2:Case 2: xx∈∈C.C. ThenThen xx∈∈AA∩∩CC , so, so xx∈∈((AA∩∩BB))∪∪((AA∩∩CC).).
– Therefore,Therefore, xx∈∈((AA∩∩BB))∪∪((AA∩∩CC).).
– Therefore,Therefore, AA∩∩((BB∪∪CC))⊆⊆((AA∩∩BB))∪∪((AA∩∩CC).).
• Show (Show (AA∩∩BB))∪∪((AA∩∩CC)) ⊆⊆ AA∩∩((BB∪∪CC). …). …
33. 33
Method 3: Membership Tables
• Just like truth tables for propositional logic.Just like truth tables for propositional logic.
• Columns for different set expressions.Columns for different set expressions.
• Rows for all combinations of membershipsRows for all combinations of memberships
in constituent sets.in constituent sets.
• Use “1” to indicate membership in theUse “1” to indicate membership in the
derived set, “0” for non-membership.derived set, “0” for non-membership.
• Prove equivalence with identical columns.Prove equivalence with identical columns.
36. 36
Generalized Union
• Binary union operator:Binary union operator: AA∪∪BB
• nn-ary union:-ary union:
AA∪∪AA22∪∪……∪∪AAnn ::≡≡ ((…((((…((AA11∪∪ AA22))∪∪…)…)∪∪ AAnn))
(grouping & order is irrelevant)(grouping & order is irrelevant)
• ““Big U” notation:Big U” notation:
• Or for infinite sets of sets:Or for infinite sets of sets:
n
i
iA
1=
XA
A
∈
37. 37
Generalized Intersection
• Binary intersection operator:Binary intersection operator: AA∩∩BB
• nn-ary intersection:-ary intersection:
AA∩∩AA22∩∩……∩∩AAnn≡≡((…((((…((AA11∩∩AA22))∩∩…)…)∩∩AAnn))
(grouping & order is irrelevant)(grouping & order is irrelevant)
• ““Big Arch” notation:Big Arch” notation:
• Or for infinite sets of sets:Or for infinite sets of sets:
n
i
iA
1=
XA
A
∈
38. Campus Overview
907/A Uvarshad,
Gandhinagar
Highway, Ahmedabad –
382422.
Ahmedabad Kolkata
Infinity Benchmark,
10th
Floor, Plot G1,
Block EP & GP,
Sector V, Salt-Lake,
Kolkata – 700091.
Mumbai
Goldline Business Centre
Linkway Estate,
Next to Chincholi Fire
Brigade, Malad (West),
Mumbai – 400 064.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank Read {a, b, c} as “the set whose elements are a, b, and c” or just “the set a, b, c”.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank With Venn diagrams, you can see that one set is a subset of another just by seeing that you can draw an enclosure around its members that fits completely inside an enclosure drawn around the larger set’s members.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank Note also that FORALL x P(x)->Q(x) can also be understood as meaning “{x|P(x)} is a subset of {x|Q{x}}”. This can help you understand the meaning of implication. For example, if I say, “if a student has a drivers license, then he is over 16,” this is the same as saying “the set of students with drivers licenses is a subset of the set of students who are over 16”, or “every student with a drivers license is over 16.” If no students in the universe of discourse have drivers licenses, then the antecedent is always false, or in other words the set of students with drivers licenses is just the empty set, which is of course a member of every set, and so the statement is vacuously true. Alternatively, if every student in the universe of discourse is over 16, then the consequent is always true, that is, the set of students who are over 16 is the entire universe of discourse, and so every set of students in the u.d. is necessarily a subset of the set of students who are over 16, and so the statement is trivially true. The statement is only false if there exists a student with a drivers license in the u.d. who is under 16 (perhaps the license is fake or from a foreign country), in which case, the set of students with drivers licenses is *not* a subset of the under-16 students.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank We may also say, “S is a strict subset of T”, or “S is strictly a subset of T” to mean the same thing.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank In general, any kind of object or structure, whether simple or complex, can be a member of a set. In particular, sets themselves (being structures) can be members of sets. If you don’t understand the distinction between 1, {1}, {{1}}, you’ll make endless silly mistakes. 1 is a number, the number one. {1} is NOT A NUMBER AT ALL! It is a COMPLETELY DIFFERENT TYPE OF OBJECT! Namely, it is a set. What kind of set? It is a singleton set, by which we mean a set that contains exactly one element. In this case, its element happens to be the number 1. Now, what is {{1}}? It is also a set, and also a singleton set, but it is a COMPLETELY DIFFERENT TYPE of singleton set. To see this, notice that {1} is a set of numbers, whereas {{1}} is not a set of numbers at all! It is a SET OF SETS. Its single element is not a number at all, but is a SET. Namely, the set {1}. In other words, {{1}} is the singleton set whose member is the singleton set whose member is 1. Whereas, {1} is just the singleton set whose member is 1. And, 1 is just 1. All of these are distinct objects and you’ve got to learn to keep them separate! Otherwise, you’ll never have a chance of understanding data types in programming languages. For example, in most languages, we can have an array of numbers, or an array of arrays of numbers, etc. These are all completely different types of objects and can never be compatible with each other.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank We’ll get to different sizes of infinite sets later, in the module on functions.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank Sometimes people also define “bags”, which are unordered collections in which duplicates matter. If you have a bag of coins, they are in no particular order, but it matters how many coins of each type you have.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank Usually AxBxC is defined as {(a,b,c) | a is in A and b is in B and c is in C}.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank We will see this basic counting principle again when we talk about combinatorics.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank NOT (x in A -> x in B) = NOT (x not in A or x in B) (defn. of implies) = x in A AND x not in B (DeMorgan’s law).
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank Note that set difference and complement do not relate to each other like arithmetic difference and negative. In arithmetic, we know that a-b = -(b-a). But in sets, A-B is not generally the same as the complement of B-A.
Discrete Mathematics and its Applications 07/03/13 (c)2001-2002, Michael P. Frank A membership table is like a truth table.