Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007

Slides:



Advertisements
Similar presentations
Jessie Zhao Course page: 1.
Advertisements

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
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.
2.1 Sets. DEFINITION 1 A set is an unordered collection of objects. DEFINITION 2 The objects in a set are called the elements, or members, of the set.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/14/12 Ming-Hsuan Yang UC Merced 1.
modified from UCI ICS/Math 6D, Fall Sets+Functions-1 Sets “Set”=Unordered collection of Objects “Set Elements”
CSC 2300 Data Structures & Algorithms January 16, 2007 Chapter 1. Introduction.
CS 2210 (22C:019) Discrete Structures Sets and Functions Spring 2015 Sukumar Ghosh.
Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities , Semester 2, Set Basics 1.
Survey of Mathematical Ideas Math 100 Chapter 2
Sets.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
CS355 - Theory of Computation Lecture 2: Mathematical Preliminaries.
Sets Set Operations Functions. 1. Sets 1.1 Introduction and Notation 1.2 Cardinality 1.3 Power Set 1.4 Cartesian Products.
2.1 – Sets. Examples: Set-Builder Notation Using Set-Builder Notation to Make Domains Explicit Examples.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Sets.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
ICS 253: Discrete Structures I
R. Johnsonbaugh, Discrete Mathematics 5 th edition, 2001 Chapter 2 The Language of Mathematics.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (2)
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
1.4 Sets Definition 1. A set is a group of objects . The objects in a set are called the elements, or members, of the set. Example 2 The set of positive.
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Discrete Mathematics R. Johnsonbaugh
MATH 224 – Discrete Mathematics
CompSci 102 Discrete Math for Computer Science
Sets. Definitions (I) Collection of elements such that: There are no duplicates There is no order Special sets Universe (U or E): all elements under consideration.
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:
Chapter 2 With Question/Answer Animations. Section 2.1.
Basic Structures: Sets, Functions, Sequences, and Sums.
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.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
Discrete Mathematics Set.
Chapter 2 With Question/Answer Animations. Section 2.1.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
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.
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
CPCS 222 Discrete Structures I
Chapter 2 With Question/Answer Animations. Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations.
ICS 253: Discrete Structures I
CSE15 Discrete Mathematics 02/13/17
Sets Finite 7-1.
Discrete Mathematics Lecture 3 (and 4)
Set Definition: A set is unordered collection of objects.
Discrete Mathematical The Set Theory
Sets Section 2.1.
CS 2210:0001 Discrete Structures Sets and Functions
MATH 224 – Discrete Mathematics
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Discrete Math (2) Haiming Chen Associate Professor, PhD
CS100: Discrete structures
Lecture 7 Functions.
Set Operations Section 2.2.
Propositional Logic Defining Propositional Logic
2.1 Sets Dr. Halimah Alshehri.
Sets. EXAMPLE 1 The set O of odd positive integers less than 10 can be expressed by O = { l, 3, 5, 7, 9}. * This way of describing a set is known as.
Discrete Mathematics CS 2610
CSE 321 Discrete Structures
ICS 253: Discrete Structures I
Presentation transcript:

Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007 Suprakash Datta datta@cs.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cs.yorku.ca/course/1019 4/5/2019

The role of conjectures 3x+1 conjecture Game: Start from a given integer n. If n is even, replace n by n/2. If n is odd, replace n with 3n+1. Keep doing this until you hit 1. e.g. n=5  16  8  4  2  1 Q: Does this game terminate for all n? 4/5/2019

Next Ch. 2: Introduction to Set Theory Set operations Functions Cardinality 4/5/2019

Sets Unordered collection of elements, e.g., Equality of sets Single digit integers Nonnegative integers faces of a die sides of a coin students enrolled in 1019N, W 2007. Equality of sets Note: Connection with data types 4/5/2019

Describing sets English description Set builder notation Note: The elements of a set can be sets, pairs of elements, pairs of pairs, triples, …!! Cartesian product: A x B = {(a,b)| a  A and b  B} 4/5/2019

Sets - continued Cardinality – number of (distinct) elements Finite set – cardinality some finite integer n Infinite set - a set that is not finite Special sets Universal set Empty set  (cardinality = ?) 4/5/2019

Similarly, P({}) = {, {}} Subsets A  B: x ( x  A  x  B) Theorem: For any set S,   S and S  S. Proper subset: A  B: x ( x  A  x  B)   x ( x  B  x  A) Power set P(S) : set of all subsets of S. P(S) includes S, . Tricky question – What is P() ? P() = {} Similarly, P({}) = {, {}} 4/5/2019

Set operations Union – A  B = { x | (x  A)  (x  B)} Intersection - A  B = { x | (x  A)  (x  B)} Disjoint sets - A, B are disjoint iff A  B =  Difference – A – B = {x | (x  A)  (x  B)} Symmetric difference Complement – Ac or Ā = {x | x A} = U - A Venn diagrams 4/5/2019

Laws of set operations Page 124 – notice the similarities with the laws for Boolean operators Remember De Morgan’s Laws and distributive laws. Proofs can be done with Venn diagrams. E.g.: (A  B) c = Ac  Bc 4/5/2019

Introduction to functions A function from A to B is an assignment of exactly one element of B to each element of A. E.g.: Let A = B = integers, f(x) = x+10 Let A = B = integers, f(x) = x2 Not a function A = B = real numbers f(x) = x A = B = real numbers, f(x) = 1/x 4/5/2019

Terminology A = Domain, B = Co-domain f: A  B (not “implies”) range(f) = {y|  x  A f(x) = y}  B int floor (float real){ … } f1 + f2, f1f2 One-to-one INJECTIVE Onto SURJECTIVE One-to-one correspondence BIJECTIVE 4/5/2019

Operations with functions Inverse f-1(x)  1/f(x) f -1(y) = x iff f(x) = y Composition: If f: A  B, g: C  A, then f ° g: C  B, f°g(x) = f(g(x)) 4/5/2019

Special functions All domains: identity (x) Note: f ° f –1 = f -1 ° f =  Integers: floor, ceiling, DecimalToBinary, BinaryToDecimal Reals: exponential, log 4/5/2019

Sequences Finite or infinite Calculus – limits of infinite sequences (proving existence, evaluation…) E.g. Arithmetic progression (series) Geometric progression (series) Closely related to sums of series 4/5/2019

Sums of common series Arithmetic series e.g. 1 + 2 + … + n (occurs in the analysis of running time of simple for loops) Geometric series e.g. 1 + 2 + 22 + 23 + … + 2n More general series 12 + 22 + 32 + 42 + … + n2 4/5/2019