CSE 311: Foundations of Computing Fall 2013 Lecture 9: Set theory and functions.

Slides:



Advertisements
Similar presentations
CSE 20 Lecture 9 Boolean Algebra: Theorems and Proofs CK Cheng April 26, 2011 Lecture notes 1.
Advertisements

More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,
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.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Instructor: Hayk Melikya
(CSC 102) Discrete Structures Lecture 14.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Discrete Structures Chapter 3 Set Theory Nurul Amelina Nasharuddin Multimedia Department.
Lecture 3 Set Operations & Set Functions. Recap Set: unordered collection of objects Equal sets have the same elements Subset: elements in A are also.
Discrete Mathematics Lecture 5
Sets 1.
Sets 1.
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
Lecture 3 Operations on Sets CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Set Theory A B C.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
ICS 253: Discrete Structures I
CSE 311 Foundations of Computing I Lecture 8 Proofs and Set Theory Spring
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Set A formal collection of objects, which can be anything May be finite or infinite Can be defined by: – Listing the elements – Drawing a picture – Writing.
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Foundations of Computing I CSE 311 Fall It’s Boolean algebra again Definition for  based on  Definition for  based on  Complement works like.
CompSci 102 Discrete Math for Computer Science
CSE 20: Lecture 7 Boolean Algebra CK Cheng
CSE 311 Foundations of Computing I Lecture 9 Proofs and Set Theory Autumn 2012 CSE
Chapter 2 With Question/Answer Animations. Section 2.1.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Introduction to Set theory. Ways of Describing Sets.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
CSE 311 Foundations of Computing I Lecture 10 Set Theory Autumn 2012 Autumn 2012CSE
Basic Definitions of Set Theory Lecture 23 Section 5.1 Wed, Mar 8, 2006.
Based on slides by Patrice Belleville and Steve Wolfman CPSC 121: Models of Computation Unit 11: Sets.
Basic Definitions of Set Theory Lecture 24 Section 5.1 Fri, Mar 2, 2007.
Discrete Mathematics CS 2610 January 27, part 2.
Discrete Mathematics Set.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Mon, Feb 21, 2005.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
Introduction to Graph Theory & its Applications
Thinking Mathematically Venn Diagrams and Set Operations.
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.
CS480 Cryptography and Information Security Huiping Guo Department of Computer Science California State University, Los Angeles 14. Digital signature.
Section 6.1 Set and Set Operations. Set: A set is a collection of objects/elements. Ex. A = {w, a, r, d} Sets are often named with capital letters. Order.
Lecture 6 Set Theory.
Discrete Structures – CNS 2300
Computer Communication & Networks
Sets Section 2.1.
Week 7 - Monday CS322.
CSE 311 Foundations of Computing I
CS100: Discrete structures
Set Operations Section 2.2.
CSE 311 Foundations of Computing I
CSE 311 Foundations of Computing I
CSE 311 Foundations of Computing I
Session – 2 SETS & Operations of SETS
CSE 311: Foundations of Computing
CSE 321 Discrete Structures
Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007
CSE 321 Discrete Structures
Lecture Sets 2.2 Set Operations.
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
CSE 321 Discrete Structures
Presentation transcript:

CSE 311: Foundations of Computing Fall 2013 Lecture 9: Set theory and functions

announcements Reading assignment Set theory (both editions)

set theory Formal treatment dates from late 19 th century Direct ties between set theory and logic Important foundational language

definition: a set is an unordered collection of objects

definitions A and B are equal if they have the same elements A is a subset of B if every element of A is also in B A = B   x (x  A  x  B) A  B   x (x  A  x  B)

empty set and power set

cartesian product

set operations union intersection set difference symmetric difference complement

it’s Boolean algebra again Definition for  based on  Definition for  based on  Complement works like 

De Morgan’s Laws Proof technique: To show C = D show x  C  x  D and x  D  x  C

distributive laws C AB C AB

representing sets using bits

bitwise operations on vectors Java: z=x|y  Java: z=x&y  Java: z=x^y 

a simple identity If x and y are bits: (x  y)  y = ? What if x and y are bit-vectors?

private key cryptography Alice wants to communicate message secretly to Bob so that eavesdropper Eve who hears their conversation cannot tell what Alice’s message is. Alice and Bob can get together and privately share a secret key K ahead of time.

one-time pad Alice and Bob privately share random n-bit vector K – Eve does not know K Later, Alice has n-bit message m to send to Bob – Alice computes C = m  K – Alice sends C to Bob – Bob computes m = C  K which is (m  K)  K Eve cannot figure out m from C unless she can guess K

unix/linux file permissions ls –l drwxr-xr-x... Documents/ -rw-r--r--... file1 Permissions maintained as bit vectors – Letter means bit is 1 – “--” means bit is 0.

russell’s paradox

functions review

image, preimage a b c d e

is this a function? one-to-one? onto? a b c d e