Mathematical Background

Slides:



Advertisements
Similar presentations
Chapter 2 Revision of Mathematical Notations and Techniques
Advertisements

The Engineering Design of Systems: Models and Methods
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.
Discrete Mathematics Lecture 7 Alexander Bukharovich New York University.
Discrete Mathematics Lecture#11.
1 Section 7.1 Relations and their properties. 2 Binary relation A binary relation is a set of ordered pairs that expresses a relationship between elements.
Relations Chapter 9.
CS355 - Theory of Computation Lecture 2: Mathematical Preliminaries.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
R. Johnsonbaugh, Discrete Mathematics 5 th edition, 2001 Chapter 2 The Language of Mathematics.
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Digraphs and Relations Warm Up. The Divisibility Relation Let “|” be the binary relation on N×N such that a|b (“a divides b”) iff there is an n ∈ N such.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
Chapter 9 Functions Let A and B be nonempty sets. A function f from A to B, written f: A  B is a relation from A to B with the property that every element.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Mathematical Notions and Terminology Lecture 2 Section 0.2 Fri, Aug 24, 2007.
Relations, Functions, and Countability
Language: Set of Strings
Discrete Mathematics Relation.
ELEMENTARY SET THEORY.
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
Mathematical Preliminaries
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.
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and B = {a,b} {( 0, a), (
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
CSE 373, Copyright S. Tanimoto, 2002 Abstract Data Types - 1 Abstract Data Types Motivation Abstract Data Types Example Using math. functions to describe.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Relations and Their Properties
Citra Noviyasari, S.Si, MT
Chapter 5 Relations and Operations
CSE15 Discrete Mathematics 02/13/17
Formal Language & Automata Theory
Relations, Functions, and Matrices
Equivalence Relations
Relations Chapter 9.
Relations and Digraphs
Representing Relations
Cartesian product Given two sets A, B we define their Cartesian product is the set of all the pairs whose first element is in A and second in B. Note that.
Chapter 2 Sets and Functions.
Relation and function.
Mathematical Notions and Terminology
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
Cardinality of Sets Section 2.5.
CS201: Data Structures and Discrete Mathematics I
Chapter 2 Sets and Functions.
CSE15 Discrete Mathematics 02/27/17
2.1 Sets Dr. Halimah Alshehri.
8.1 Relations and Their Properties
Introduction to Sets.
Advanced Algorithms Analysis and Design
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.
Sungho Kang Yonsei University
Mathematical Background 1
Mathematical Background 1
Relations and their Properties
Discrete Mathematics CS 2610
Introduction to Relations and Functions
The UNION-FIND Abstract Data Type
Copyright © Cengage Learning. All rights reserved.
Chapter 1 Introduction to the Theory of Computation
REVISION Relation. REVISION Relation Introduction to Relations and Functions.
Terminology and Symbols
Presentation transcript:

Mathematical Background Sets Cardinality Relations Cartesian Products Functions Properties of Functions CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Sets A set is a collection of distinct objects. (An object is some identifiable person, place, thing, or idea). The objects are usually represented by symbols. The set consisting of Al Gore and George W. Bush: { Al Gore, George W. Bush} CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Sets (Continued) The set consisting of the first 5 primes: { 2, 3, 5, 7, 11} The set consisting of all strings made up of only a and b. { “”, “a”, “b”, “aa”, “ab”, “ba”, “bb”, . . . } (or, without the use of quotes...) { λ, a, b, aa, ab, ba, bb, . . . } CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Sets (continued) The objects that make up a set are called its elements or members. If an object e is an elements of a set S, then we write e  S The empty set { } contains zero elements. A set may contain other sets as members: { {a}, {b}, {a, b} } contains three (top-level) elements. { { } } contains one element. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Cardinality A set may be finite or infinite. The cardinality of a finite set is the number of (top-level) elements it contains. Card( { a, b, c } ) = 3 We sometimes use vertical bars: | { a, b, c } | = 3 CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Binary Relations Suppose S is a set. Let a  S and b  S. Then (a, b) is an ordered pair of elements of S. The set of all ordered pairs over S is: { (x, y) | x  S, y  S } = the set of all ordered pairs (x, y) such that x is in S and y is in S. Any set of ordered pairs over S is called a binary relation on S. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Binary Relations (cont) Examples: Let S = { a, b, c } B1 = { (a, b), (c, b), (c, c) } is a binary relation on S. B2 = { (a, a), (b, b), (c, c) } is a binary relation on S. It happens to be reflexive. B3 = { } is a binary relation on S. It happens to be empty. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Binary Relations (reflexivity) A binary relation on S is reflexive provided that for every element in S, the pair of that element with itself is a pair in S. S = { a, b, c } R4 = { (a, a), (a, b), (b, b), (b, c), (c, c) } is reflexive. R5 = { (a, a), (a, b), (b, b) } is not reflexive, because c  S but (c, c) R5. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Binary Relations (symmetry) A binary relation R on S is symmetric provided that any pair that occurs in R also occurs “reversed” in R. S = { a, b, c } R6 = { (a, b), (b, a), (c, c) } is symmetric. { } is symmetric. R7 = { (a, b), (b, b), (c, c) } is not symmetric, because (a, b)  R7 but (b, a) R7. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Binary Relations (transitivity) A binary relation B on S is transitive provided that whenever there is a two-element “chain” in B there is also the corresponding “shortcut” in B. B is transitive iff (x  S,  y  S,  z  S) (x, y)  B and (y, z)  B  (x, z)  B) R8 = { (a, b), (a, c), (b, c), (c, c) } is transitive. R9 = { (a, b), (b, a)} is not transitive, because (a, b) and (b, a) form a chain, but (a, a), the shortcut, is not present. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Cartesian Products Let S1 and S2 be sets. Then the cartesian product S1 X S2 is the set of all ordered pairs in which the first element is a member of S1 and the second element is a member of S2. Example: Let A = { a, b, c }, Let B = { 1, 2 } then A X B = { (a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2) } CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Cartesian Products (n-way) The n-way cartesian product S1 X S2 X ... X Sn is the set of all ordered n-tuples in which the ith element is an element of Si. S1 X S2 X ... X Sn = { (s1, s2, ..., sn ) | s1S1, s2S2, ..., s2S2 } CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Functions Let S1 and S2 be sets. Let f be a subset of S1 X S2. (f is a binary relation on S1 and S2) If for each x in S1 there is precisely one y in S2 such that (x, y)  f, then f is a function from S1 to S2. We also say f is a function on S1. S1 is called the domain of f and S2 is called the range of f. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background - Functions (Examples) Let S1 = { a, b, c} and S2 = { 1, 2}. Let f1 = { (a, 1), (b, 1), (c, 2) } f1 is a function on S1. Let f2 = { (a, 1), (b, 1), (b, 2), (c, 1) } f2 is not a function. Let f3 = { (a, 1), (b, 2)} f3 is not a function on S1. But it is a partial function on S1. It’s actually a function on { a, b }. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Properties of Functions Let f be a function from S1 to S2. If every element of S2 appears as the second element of some ordered pair in f, then f is said to be “onto”. (It’s also said to be a surjection.) With S1 = { a, b, c} and S2 = { 1, 2}. and f1 = { (a, 1), (b, 1), (c, 2) }, f1 is onto. Let f4 = { (a, 1), (b, 1), (c, 1) } with the same domain and range. f4 is not onto. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Properties of Functions (cont) Let f be a function from S1 to S2. If no two elements of S1 are paired with the same element of S2 then f is said to be “one-to-one”. (It’s also said to be a injection.) With S1 = { a, b, c} and S2 = { 1, 2}. and f1 = { (a, 1), (b, 1), (c, 2) }, f1 is not one-to-one, since a and b are both paired with 1. Let f5 = { (a, 1), (b, 2)} with domain { a, b}. f5 is one-to-one. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -

Properties of Functions Let S1 = { a, b, c} and S2 = { 1, 2}. Let f1 = { (a, 1), (b, 1), (c, 2) } f1 is a function on S1. Let f2 = { (a, 1), (b, 1), (b, 2), (c, 1) } f2 is not a function. Let f3 = { (a, 1), (b, 2)} f3 is not a function on S1. But it is a partial function on S1. It’s actually a function on { a, b }. CSE 373, Copyright S. Tanimoto, 2001 Mathematical Background -