CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.

Slides:



Advertisements
Similar presentations
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Advertisements

Discrete Mathematics I Lectures Chapter 6
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Manish Kumar PRE. 1 Theory Of Computation Pre-requisite.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Prof. Johnnie Baker Module Basic Structures: Sets
Sets Lecture 11: Oct 24 AB C. This Lecture We will first introduce some basic set theory before we do counting. Basic Definitions Operations on Sets Set.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
2.1 Sets ‒Sets ‒Common Universal Sets ‒Subsets 2.2 Set Operations 2.3 Functions 2.4 Sequences and Summations 1.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE115/ENGR160 Discrete Mathematics 02/14/12 Ming-Hsuan Yang UC Merced 1.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
1. Set Theory Set: Collection of objects (“elements”) a  A “a is an element of A” “a is a member of A” a  A “a is not an element of A” A = {a 1, a 2,
CompSci 102 Discrete Math for Computer Science
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Sets 2/10/121. What is a Set? Informally, a collection of objects, determined by its members, treated as a single mathematical object Not a real definition:
Set Notes Day 4. How are these two sets related? A={2,3,4,6} and B={5,1,2,4,3} They both have a 2, 3, and 4. This is the intersection. AB U.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Lecture 2.1: Sets and Set Operations CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Chapter 2 With Question/Answer Animations. Section 2.1.
Sets.
Lecture 5: Set Theory 1 Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Discrete Mathematics. Set Theory - Definitions and notation A set is an unordered collection of elements. Some examples: {1, 2, 3} is the set containing.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Based on slides by Patrice Belleville and Steve Wolfman CPSC 121: Models of Computation Unit 11: Sets.
Warning: All the Venn Diagram construction and pictures will be done during class and are not included in this presentation. If you missed class you.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Section 1.2 – 1.3 Outline Intersection  Disjoint Sets (A  B=  ) AND Union  OR Universe The set of items that are possible for membership Venn Diagrams.
Fr: Discrete Mathematics by Washburn, Marlowe, and Ryan.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Applied Discrete Mathematics Week 1: Logic and Sets
Discrete Mathematical The Set Theory
MATH 15A – Discrete Mathematics
… and now for something completely different…
Exercises Show that (P  Q)  (P)  (Q)
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Discrete Mathematics CS 2610
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
… and now for something completely different…
Lecture Sets 2.2 Set Operations.
Presentation transcript:

CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett

Today’s Topics: 1. Set sizes 2. Set builder notation 3. Rapid-fire set-theory practice 2

1. Set sizes 3

Power set  Let A be a set of n elements (|A|=n)  How large is P(A) (the power-set of A)? A. n B. 2n C. n 2 D. 2 n E. None/other/more than one 4

Cartesian product  |A|=n, |B|=m  How large is A x B ? A. n+m B. nm C. n 2 D. m 2 E. None/other/more than one 5

Union  |A|=n, |B|=m  How large is A  B ? A. n+m B. nm C. n 2 D. m 2 E. None/other/more than one 6

Intersection  |A|=n, |B|=m  How large is A  B ? A. n+m B. nm C. At most n D. At most m E. None/other/more than one 7

2. Set builder notation 8

Set builder notation 9

10

Ways of defining a set  Enumeration:  {1,2,3,4,5,6,7,8,9}  + very clear  - impractical for large sets  Incomplete enumeration (ellipses):  {1,2,3,…,98,99,100}  + takes up less space, can work for large or infinite sets  - not always clear  { …} What does this mean? What is the next element?  Set builder:  { n | }  + can be used for large or infinite sets, clearly sets forth rules for membership 11

Primes  Enumeration may not be clear:  { …}  How can we write the set Primes using set builder notation? A. {n  N :   a,b  N, n=ab} B. {n  N :  a,b  N, n=ab  (a=1  b=1)} C. {a,b  N :  n  N, n=ab  (a=n  b=n)} D. {n  N :  a,b  N, n=ab  (a=1  b=1)} E. None/other/more than one 12

Russell’s paradox  Let A={S| S  S}  Does A  A? A. Yes B. No C. Neither D. Both E. Other 13

Russell’s paradox 14

3. Rapid-fire set-theory practice Clickers ready! 15

Set Theory rapid-fire practice 16

Set Theory rapid-fire practice 17

Set Theory rapid-fire practice 18