SlideShare a Scribd company logo
1 of 6
SSEETTSS 
AA sseett iiss aa ccoolllleeccttiioonn ooff tthhiinnggss.. 
FFoorr eexxaammppllee,, tthhee iitteemmss yyoouu wweeaarr iiss 
aa sseett:: tthheessee wwoouulldd iinncclluuddee sshhooeess,, 
ssoocckkss,, hhaatt,, sshhiirrtt,, ppaannttss,, aanndd ssoo oonn.. 
Fall 2002 CMSC 203 - Discrete Structures 1
SSEETTSS 
YYoouu wwrriittee sseettss iinnssiiddee ccuurrllyy 
bbrraacckkeettss lliikkee tthhiiss:: 
{{ssoocckkss,, sshhooeess,, ppaannttss,, 
wwaattcchheess,, sshhiirrttss,, ......}} 
Fall 2002 CMSC 203 - Discrete Structures 2
You ccaann aallssoo hhaavvee sseettss ooff 
nnuummbbeerrss:: 
SSeett ooff wwhhoollee nnuummbbeerrss:: {{00,, 11,, 22,, 
33,, ......}} 
SSeett ooff pprriimmee nnuummbbeerrss:: {{22,, 33,, 55,, 
77,, 1111,, 1133,, 1177,, ......}} YY 
Fall 2002 CMSC 203 - Discrete Structures 3
TTeenn BBeesstt FFrriieennddss 
YYoouu ccoouulldd hhaavvee aa sseett mmaaddee uupp ooff yyoouurr tteenn bbeesstt ffrriieennddss:: 
{{aalleexx,, bbllaaiirr,, ccaasseeyy,, ddrreeww,, eerriinn,, ffrraanncciiss,, gglleenn,, hhuunntteerr,, iirraa,, 
jjaaddee}} 
EEaacchh ffrriieenndd iiss aann ""eelleemmeenntt"" ((oorr ""mmeemmbbeerr"")) ooff tthhee sseett ((iitt 
iiss nnoorrmmaall ttoo uussee lloowweerrccaassee lleetttteerrss ffoorr tthheemm..)) 
NNooww lleett''ss ssaayy tthhaatt aalleexx,, ccaasseeyy,, ddrreeww aanndd hhuunntteerr 
ppllaayy SSoocccceerr:: 
SSoocccceerr == {{aalleexx,, ccaasseeyy,, ddrreeww,, hhuunntteerr}} 
((TThhee SSeett ""SSoocccceerr"" iiss mmaaddee uupp ooff tthhee eelleemmeennttss aalleexx,, ccaasseeyy,, 
ddrreeww aanndd hhuunntteerr)).. 
AAnndd ccaasseeyy,, ddrreeww aanndd jjaaddee ppllaayy TTeennnniiss:: 
TTeennnniiss == {{ccaasseeyy,, ddrreeww,, jjaaddee}} 
Fall 2002 CMSC 203 - Discrete Structures 4
UUNNIIOONN 
YYoouu ccaann nnooww lliisstt yyoouurr ffrriieennddss tthhaatt 
ppllaayy SSoocccceerr OORR TTeennnniiss.. 
TThhiiss iiss ccaalllleedd aa ""UUnniioonn"" ooff sseettss aanndd 
hhaass tthhee ssppeecciiaall ssyymmbbooll ∪∪:: 
SSoocccceerr ∪∪ TTeennnniiss == {{aalleexx,, ccaasseeyy,, ddrreeww,, 
hhuunntteerr,, jjaaddee}} 
Fall 2002 CMSC 203 - Discrete Structures 5
UUNNIIOONN 
YYoouu ccaann nnooww lliisstt yyoouurr ffrriieennddss tthhaatt 
ppllaayy SSoocccceerr OORR TTeennnniiss.. 
TThhiiss iiss ccaalllleedd aa ""UUnniioonn"" ooff sseettss aanndd 
hhaass tthhee ssppeecciiaall ssyymmbbooll ∪∪:: 
SSoocccceerr ∪∪ TTeennnniiss == {{aalleexx,, ccaasseeyy,, ddrreeww,, 
hhuunntteerr,, jjaaddee}} 
Fall 2002 CMSC 203 - Discrete Structures 5

More Related Content

What's hot

CS201- Introduction to Programming- Lecture 34
CS201- Introduction to Programming- Lecture 34CS201- Introduction to Programming- Lecture 34
CS201- Introduction to Programming- Lecture 34Bilal Ahmed
 
CS201- Introduction to Programming- Lecture 07
CS201- Introduction to Programming- Lecture 07CS201- Introduction to Programming- Lecture 07
CS201- Introduction to Programming- Lecture 07Bilal Ahmed
 
CS201- Introduction to Programming- Lecture 13
CS201- Introduction to Programming- Lecture 13CS201- Introduction to Programming- Lecture 13
CS201- Introduction to Programming- Lecture 13Bilal Ahmed
 
Top school in ghaziabad
Top school in ghaziabadTop school in ghaziabad
Top school in ghaziabadEdhole.com
 
CS201- Introduction to Programming- Lecture 33
CS201- Introduction to Programming- Lecture 33CS201- Introduction to Programming- Lecture 33
CS201- Introduction to Programming- Lecture 33Bilal Ahmed
 
124871685 nocoes de_primeiros_socorros
124871685 nocoes de_primeiros_socorros124871685 nocoes de_primeiros_socorros
124871685 nocoes de_primeiros_socorrosPelo Siro
 
2074 - APELAÇÃO CPC Atualizado 2018
2074 - APELAÇÃO CPC Atualizado 20182074 - APELAÇÃO CPC Atualizado 2018
2074 - APELAÇÃO CPC Atualizado 2018Consultor JRSantana
 
CS201- Introduction to Programming- Lecture 10
CS201- Introduction to Programming- Lecture 10CS201- Introduction to Programming- Lecture 10
CS201- Introduction to Programming- Lecture 10Bilal Ahmed
 
Dasar Logika Informatia II
Dasar Logika Informatia IIDasar Logika Informatia II
Dasar Logika Informatia IIMuhammad Hanif
 
Dossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OIT
Dossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OITDossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OIT
Dossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OITRabah HELAL
 
CS201- Introduction to Programming- Lecture 09
CS201- Introduction to Programming- Lecture 09CS201- Introduction to Programming- Lecture 09
CS201- Introduction to Programming- Lecture 09Bilal Ahmed
 
CS201- Introduction to Programming- Lecture 08
CS201- Introduction to Programming- Lecture 08CS201- Introduction to Programming- Lecture 08
CS201- Introduction to Programming- Lecture 08Bilal Ahmed
 
CS201- Introduction to Programming- Lecture 41
CS201- Introduction to Programming- Lecture 41CS201- Introduction to Programming- Lecture 41
CS201- Introduction to Programming- Lecture 41Bilal Ahmed
 
CS201- Introduction to Programming- Lecture 22
CS201- Introduction to Programming- Lecture 22CS201- Introduction to Programming- Lecture 22
CS201- Introduction to Programming- Lecture 22Bilal Ahmed
 
CS201- Introduction to Programming- Lecture 32
CS201- Introduction to Programming- Lecture 32CS201- Introduction to Programming- Lecture 32
CS201- Introduction to Programming- Lecture 32Bilal Ahmed
 

What's hot (20)

CS201- Introduction to Programming- Lecture 34
CS201- Introduction to Programming- Lecture 34CS201- Introduction to Programming- Lecture 34
CS201- Introduction to Programming- Lecture 34
 
CS201- Introduction to Programming- Lecture 07
CS201- Introduction to Programming- Lecture 07CS201- Introduction to Programming- Lecture 07
CS201- Introduction to Programming- Lecture 07
 
CS201- Introduction to Programming- Lecture 13
CS201- Introduction to Programming- Lecture 13CS201- Introduction to Programming- Lecture 13
CS201- Introduction to Programming- Lecture 13
 
Top school in ghaziabad
Top school in ghaziabadTop school in ghaziabad
Top school in ghaziabad
 
CS201- Introduction to Programming- Lecture 33
CS201- Introduction to Programming- Lecture 33CS201- Introduction to Programming- Lecture 33
CS201- Introduction to Programming- Lecture 33
 
gurjinder(Resume)
gurjinder(Resume)gurjinder(Resume)
gurjinder(Resume)
 
124871685 nocoes de_primeiros_socorros
124871685 nocoes de_primeiros_socorros124871685 nocoes de_primeiros_socorros
124871685 nocoes de_primeiros_socorros
 
2074 - APELAÇÃO CPC Atualizado 2018
2074 - APELAÇÃO CPC Atualizado 20182074 - APELAÇÃO CPC Atualizado 2018
2074 - APELAÇÃO CPC Atualizado 2018
 
CS201- Introduction to Programming- Lecture 10
CS201- Introduction to Programming- Lecture 10CS201- Introduction to Programming- Lecture 10
CS201- Introduction to Programming- Lecture 10
 
Ankit
AnkitAnkit
Ankit
 
Dasar Logika Informatia II
Dasar Logika Informatia IIDasar Logika Informatia II
Dasar Logika Informatia II
 
Dossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OIT
Dossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OITDossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OIT
Dossier Complet Maritime Rrabah HELAL / CLC / OMI/BIT/OIT
 
Pseudoartrosis
PseudoartrosisPseudoartrosis
Pseudoartrosis
 
CS201- Introduction to Programming- Lecture 09
CS201- Introduction to Programming- Lecture 09CS201- Introduction to Programming- Lecture 09
CS201- Introduction to Programming- Lecture 09
 
CS201- Introduction to Programming- Lecture 08
CS201- Introduction to Programming- Lecture 08CS201- Introduction to Programming- Lecture 08
CS201- Introduction to Programming- Lecture 08
 
Pseudoartrosis (2)
Pseudoartrosis (2)Pseudoartrosis (2)
Pseudoartrosis (2)
 
Pseudoartrosis (3)
Pseudoartrosis (3)Pseudoartrosis (3)
Pseudoartrosis (3)
 
CS201- Introduction to Programming- Lecture 41
CS201- Introduction to Programming- Lecture 41CS201- Introduction to Programming- Lecture 41
CS201- Introduction to Programming- Lecture 41
 
CS201- Introduction to Programming- Lecture 22
CS201- Introduction to Programming- Lecture 22CS201- Introduction to Programming- Lecture 22
CS201- Introduction to Programming- Lecture 22
 
CS201- Introduction to Programming- Lecture 32
CS201- Introduction to Programming- Lecture 32CS201- Introduction to Programming- Lecture 32
CS201- Introduction to Programming- Lecture 32
 

Similar to Ankit

Catch-me if you can - TOR tricks for bots, shells and general hacking
Catch-me if you can - TOR tricks for bots, shells and general hackingCatch-me if you can - TOR tricks for bots, shells and general hacking
Catch-me if you can - TOR tricks for bots, shells and general hackingJan Seidl
 
Data Structures- Part8 stacks and queues
Data Structures- Part8 stacks and queuesData Structures- Part8 stacks and queues
Data Structures- Part8 stacks and queuesAbdullah Al-hazmy
 
Under the sea
Under the seaUnder the sea
Under the seamartukhi
 
Under the sea
Under the seaUnder the sea
Under the seamartukhi
 
05 The Learning Process
05 The Learning Process05 The Learning Process
05 The Learning ProcessPeter Fenrich
 
Sistemaesqueletico 111112080629-phpapp02
Sistemaesqueletico 111112080629-phpapp02Sistemaesqueletico 111112080629-phpapp02
Sistemaesqueletico 111112080629-phpapp02Rosângela Souza
 
Fármacos sistema nervioso y epinefrina
Fármacos sistema nervioso y epinefrinaFármacos sistema nervioso y epinefrina
Fármacos sistema nervioso y epinefrinaJose Dega
 
Punctuation Prep for the ACT
Punctuation Prep for the ACTPunctuation Prep for the ACT
Punctuation Prep for the ACTmmorri12
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015Edhole.com
 
Preliminary task planning
Preliminary task planning Preliminary task planning
Preliminary task planning haverstockmedia
 
Cascaded styling sheets Intro
Cascaded styling sheets IntroCascaded styling sheets Intro
Cascaded styling sheets Intromanivs_21
 
Microsoft excel tutorial06
Microsoft excel tutorial06Microsoft excel tutorial06
Microsoft excel tutorial06Athar Mutahari
 

Similar to Ankit (20)

HTML basic
HTML basicHTML basic
HTML basic
 
Catch-me if you can - TOR tricks for bots, shells and general hacking
Catch-me if you can - TOR tricks for bots, shells and general hackingCatch-me if you can - TOR tricks for bots, shells and general hacking
Catch-me if you can - TOR tricks for bots, shells and general hacking
 
Ch07
Ch07Ch07
Ch07
 
Data Structures- Part8 stacks and queues
Data Structures- Part8 stacks and queuesData Structures- Part8 stacks and queues
Data Structures- Part8 stacks and queues
 
Mba ebooks
Mba ebooksMba ebooks
Mba ebooks
 
Under the sea
Under the seaUnder the sea
Under the sea
 
Under the sea
Under the seaUnder the sea
Under the sea
 
05 The Learning Process
05 The Learning Process05 The Learning Process
05 The Learning Process
 
Tema 1 tectónica de placas
Tema 1 tectónica de placasTema 1 tectónica de placas
Tema 1 tectónica de placas
 
Sistemaesqueletico 111112080629-phpapp02
Sistemaesqueletico 111112080629-phpapp02Sistemaesqueletico 111112080629-phpapp02
Sistemaesqueletico 111112080629-phpapp02
 
Synectics
SynecticsSynectics
Synectics
 
Fármacos sistema nervioso y epinefrina
Fármacos sistema nervioso y epinefrinaFármacos sistema nervioso y epinefrina
Fármacos sistema nervioso y epinefrina
 
Punctuation Prep for the ACT
Punctuation Prep for the ACTPunctuation Prep for the ACT
Punctuation Prep for the ACT
 
Dess acconier
Dess  acconierDess  acconier
Dess acconier
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Preliminary task (1)
Preliminary task (1)Preliminary task (1)
Preliminary task (1)
 
Preliminary task planning
Preliminary task planning Preliminary task planning
Preliminary task planning
 
Preliminary task (1)
Preliminary task (1)Preliminary task (1)
Preliminary task (1)
 
Cascaded styling sheets Intro
Cascaded styling sheets IntroCascaded styling sheets Intro
Cascaded styling sheets Intro
 
Microsoft excel tutorial06
Microsoft excel tutorial06Microsoft excel tutorial06
Microsoft excel tutorial06
 

Ankit

  • 1. SSEETTSS AA sseett iiss aa ccoolllleeccttiioonn ooff tthhiinnggss.. FFoorr eexxaammppllee,, tthhee iitteemmss yyoouu wweeaarr iiss aa sseett:: tthheessee wwoouulldd iinncclluuddee sshhooeess,, ssoocckkss,, hhaatt,, sshhiirrtt,, ppaannttss,, aanndd ssoo oonn.. Fall 2002 CMSC 203 - Discrete Structures 1
  • 2. SSEETTSS YYoouu wwrriittee sseettss iinnssiiddee ccuurrllyy bbrraacckkeettss lliikkee tthhiiss:: {{ssoocckkss,, sshhooeess,, ppaannttss,, wwaattcchheess,, sshhiirrttss,, ......}} Fall 2002 CMSC 203 - Discrete Structures 2
  • 3. You ccaann aallssoo hhaavvee sseettss ooff nnuummbbeerrss:: SSeett ooff wwhhoollee nnuummbbeerrss:: {{00,, 11,, 22,, 33,, ......}} SSeett ooff pprriimmee nnuummbbeerrss:: {{22,, 33,, 55,, 77,, 1111,, 1133,, 1177,, ......}} YY Fall 2002 CMSC 203 - Discrete Structures 3
  • 4. TTeenn BBeesstt FFrriieennddss YYoouu ccoouulldd hhaavvee aa sseett mmaaddee uupp ooff yyoouurr tteenn bbeesstt ffrriieennddss:: {{aalleexx,, bbllaaiirr,, ccaasseeyy,, ddrreeww,, eerriinn,, ffrraanncciiss,, gglleenn,, hhuunntteerr,, iirraa,, jjaaddee}} EEaacchh ffrriieenndd iiss aann ""eelleemmeenntt"" ((oorr ""mmeemmbbeerr"")) ooff tthhee sseett ((iitt iiss nnoorrmmaall ttoo uussee lloowweerrccaassee lleetttteerrss ffoorr tthheemm..)) NNooww lleett''ss ssaayy tthhaatt aalleexx,, ccaasseeyy,, ddrreeww aanndd hhuunntteerr ppllaayy SSoocccceerr:: SSoocccceerr == {{aalleexx,, ccaasseeyy,, ddrreeww,, hhuunntteerr}} ((TThhee SSeett ""SSoocccceerr"" iiss mmaaddee uupp ooff tthhee eelleemmeennttss aalleexx,, ccaasseeyy,, ddrreeww aanndd hhuunntteerr)).. AAnndd ccaasseeyy,, ddrreeww aanndd jjaaddee ppllaayy TTeennnniiss:: TTeennnniiss == {{ccaasseeyy,, ddrreeww,, jjaaddee}} Fall 2002 CMSC 203 - Discrete Structures 4
  • 5. UUNNIIOONN YYoouu ccaann nnooww lliisstt yyoouurr ffrriieennddss tthhaatt ppllaayy SSoocccceerr OORR TTeennnniiss.. TThhiiss iiss ccaalllleedd aa ""UUnniioonn"" ooff sseettss aanndd hhaass tthhee ssppeecciiaall ssyymmbbooll ∪∪:: SSoocccceerr ∪∪ TTeennnniiss == {{aalleexx,, ccaasseeyy,, ddrreeww,, hhuunntteerr,, jjaaddee}} Fall 2002 CMSC 203 - Discrete Structures 5
  • 6. UUNNIIOONN YYoouu ccaann nnooww lliisstt yyoouurr ffrriieennddss tthhaatt ppllaayy SSoocccceerr OORR TTeennnniiss.. TThhiiss iiss ccaalllleedd aa ""UUnniioonn"" ooff sseettss aanndd hhaass tthhee ssppeecciiaall ssyymmbbooll ∪∪:: SSoocccceerr ∪∪ TTeennnniiss == {{aalleexx,, ccaasseeyy,, ddrreeww,, hhuunntteerr,, jjaaddee}} Fall 2002 CMSC 203 - Discrete Structures 5