DISCRETE COMPUTATIONAL STRUCTURES

Slides:



Advertisements
Similar presentations
Functions Reading: Epp Chp 7.1, 7.2, 7.4
Advertisements

Discrete Structures Chapter 5 Pigeonhole Principle Nurul Amelina Nasharuddin Multimedia Department.
Discrete Structures Chapter 5 Relations and Functions Nurul Amelina Nasharuddin Multimedia Department.
Discrete Mathematics Lecture 7 Alexander Bukharovich New York University.
Chapter 2: Combinatorial Logic Circuits Illustration Pg. 32 Logic Circuit Diagrams - Circuit Optimization -2,3,4 level maps 48 elements Optimized to 25.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
Section 1.8: Functions A function is a mapping from one set to another that satisfies certain properties. We will first introduce the notion of a mapping.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Discrete Mathematics, Part II CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some slides.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Summer 2005.
Discrete Mathematical Structures (Counting Principles)
Digital Electronics Lecture 4 Simplification using Boolean Algebra, Combinational Logic Circuit Design.
DISCRETE COMPUTATIONAL STRUCTURES CS Fall 2005.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2011 Most slides modified from Discrete Mathematical Structures: Theory and Applications.
1 Annoucement n Skills you need: (1) (In Thinking) You think and move by Logic Definitions Mathematical properties (Basic algebra etc.) (2) (In Exploration)
MSU/CSE 260 Fall Functions Read Section 1.8.
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.
DISCRETE COMPUTATIONAL STRUCTURES
Mathematical Preliminaries
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2010 Most slides modified from Discrete Mathematical Structures: Theory and Applications by D.S. Malik.
DISCRETE COMPUTATIONAL STRUCTURES
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.
Discrete Mathematics CS 2610 February 10, Agenda Previously Functions And now Finish functions Start Boolean algebras (Sec. 11.1)
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Material for Second Test Spring 2006.
Discrete Mathematics, Part IIIb CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.3, 7.4 and 7.5.
DISCRETE COMPUTATIONAL STRUCTURES CS Fall 2005.
Functions CSRU1400 Spring 2008Ellen Zhang 1 CISC1400, Fall 2010 Ellen Zhang.
Pigeonhole Principle. If n pigeons fly into m pigeonholes and n > m, then at least one hole must contain two or more pigeons A function from one finite.
August 2003 CIS102/LECTURE 9/FKS 1 Mathematics for Computing Lecture 9 LOGIC Chapter 3.
Lecture 21: Combinatorial Circuits II Discrete Mathematical Structures: Theory and Applications.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean Logic.
Introductory Lecture. What is Discrete Mathematics? Discrete mathematics is the part of mathematics devoted to the study of discrete (as opposed to continuous)
Discrete Mathematics Lecture # 17 Function. Relations and Functions  A function F from a set X to a set Y is a relation from X to Y that satisfies the.
Prepared By Meri Dedania (AITS) Discrete Mathematics by Meri Dedania Assistant Professor MCA department Atmiya Institute of Technology & Science Yogidham.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2011 Most slides modified from Discrete Mathematical Structures: Theory and Applications.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Spring 2009 Most slides modified from Discrete Mathematical Structures: Theory and Applications.
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Discrete Mathematics Lecture 6
CSIS-110 Introduction to Computer Science
Digital Logic.
Chapter 11 (Part 1): Boolean Algebra
Chapter 7: Counting Principles
Unit-III Algebraic Structures
Functions & Graphing.
Relation and function.
DISCRETE COMPUTATIONAL STRUCTURES
CALCULUS AND ANALYTIC GEOMETRY CS 001 LECTURE 02.
Fundamentals & Ethics of Information Systems IS 201
CS201: Data Structures and Discrete Mathematics I
DISCRETE COMPUTATIONAL STRUCTURES
CS Chapter 3 (3A and ) Part 3 of 8
COUNTING AND PROBABILITY
Lecture 20: Combinatorial Circuits I
Chapter 10.1 and 10.2: Boolean Algebra
Chapter 10.1 and 10.2: Boolean Algebra
Chapter 10.1 and 10.2: Boolean Algebra
CS Chapter 3 (3A and ) – Part 2 of 5
Chapter 10.3 and 10.4: Combinatorial Circuits
One-to-One and Onto, Inverse Functions
One-to-One and Onto, Inverse Functions
3.4 Cardinality Definition 3.7: The empty set is a finite set of cardinality 0. If there is a one-to-one correspondence between A and the set {0,1,2,3,…,
DISCRETE COMPUTATIONAL STRUCTURES
Lecture # 18 Types of Functions
Chapter 10.1 and 10.2: Boolean Algebra
Chapter 11 (Part 2): Boolean Algebra
Presentation transcript:

DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Spring 2006 Final Slides

Integers and Induction CSE 2353 OUTLINE Sets Logic Proof Techniques Integers and Induction Relations and Posets Functions Counting Principles Boolean Algebra

Learning Objectives Learn about functions Explore various properties of functions Learn about binary operations Discrete Mathematical Structures: Theory and Applications

Functions Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Functions Every function is a relation Therefore, functions on finite sets can be described by arrow diagrams. In the case of functions, the arrow diagram may be drawn slightly differently. If f : A → B is a function from a finite set A into a finite set B, then in the arrow diagram, the elements of A are enclosed in ellipses rather than individual boxes. Discrete Mathematical Structures: Theory and Applications

Functions To determine from its arrow diagram whether a relation f from a set A into a set B is a function, two things are checked: Check to see if there is an arrow from each element of A to an element of B This would ensure that the domain of f is the set A, i.e., D(f) = A Check to see that there is only one arrow from each element of A to an element of B This would ensure that f is well defined Discrete Mathematical Structures: Theory and Applications

Functions Let A = {1,2,3,4} and B = {a, b, c , d} be sets The arrow diagram in Figure 5.6 represents the relation f from A into B Every element of A has some image in B An element of A is related to only one element of B; i.e., for each a ∈ A there exists a unique element b ∈ B such that f (a) = b Discrete Mathematical Structures: Theory and Applications

Functions Therefore, f is a function from A into B The image of f is the set Im(f) = {a, b, d} There is an arrow originating from each element of A to an element of B D(f) = A There is only one arrow from each element of A to an element of B f is well defined Discrete Mathematical Structures: Theory and Applications

Functions The arrow diagram in Figure 5.7 represents the relation g from A into B Every element of A has some image in B D(g ) = A For each a ∈ A, there exists a unique element b ∈ B such that g(a) = b g is a function from A into B Discrete Mathematical Structures: Theory and Applications

Functions The image of g is Im(g) = {a, b, c , d} = B There is only one arrow from each element of A to an element of B g is well defined Discrete Mathematical Structures: Theory and Applications

Functions Discrete Mathematical Structures: Theory and Applications

Functions Discrete Mathematical Structures: Theory and Applications

Functions Example 5.1.16 Let A = {1,2,3,4} and B = {a, b, c , d}. Let f : A → B be a function such that the arrow diagram of f is as shown in Figure 5.10 The arrows from a distinct element of A go to a distinct element of B. That is, every element of B has at most one arrow coming to it. If a1, a2 ∈ A and a1 = a2, then f(a1) = f(a2). Hence, f is one-one. Each element of B has an arrow coming to it. That is, each element of B has a preimage. Im(f) = B. Hence, f is onto B. It also follows that f is a one-to-one correspondence. Discrete Mathematical Structures: Theory and Applications

Functions Let A = {1,2,3,4} and B = {a, b, c , d, e} Example 5.1.18 Let A = {1,2,3,4} and B = {a, b, c , d, e} f : 1 → a, 2 → a, 3 → a, 4 → a For this function the images of distinct elements of the domain are not distinct. For example 1  2, but f(1) = a = f(2) . Im(f) = {a}  B. Hence, f is neither one-one nor onto B. Discrete Mathematical Structures: Theory and Applications

Functions Let A = {1,2,3,4} and B = {a, b, c , d, e} f : 1 → a, 2 → b, 3 → d, 4 → e For this function, the images of distinct elements of the domain are distinct. Thus, f is one-one. In this function, for the element c of B, the codomain, there is no element x in the domain such that f(x) = c ; i.e., c has no preimage. Hence, f is not onto B. Discrete Mathematical Structures: Theory and Applications

Functions Discrete Mathematical Structures: Theory and Applications

Functions Let A = {1,2,3,4}, B = {a, b, c , d, e},and C = {7,8,9}. Consider the functions f : A → B, g : B → C as defined by the arrow diagrams in Figure 5.14. The arrow diagram in Figure 5.15 describes the function h = g ◦ f : A → C. Discrete Mathematical Structures: Theory and Applications

Functions Discrete Mathematical Structures: Theory and Applications

Functions Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Special Functions and Cardinality of a Set Discrete Mathematical Structures: Theory and Applications

Binary Operations Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Integers and Induction CSE 2353 OUTLINE Sets Logic Proof Techniques Integers and Induction Relations and Posets Functions Counting Principles Boolean Algebra

Learning Objectives Learn the basic counting principles— multiplication and addition Explore the pigeonhole principle Learn about permutations Learn about combinations Discrete Mathematical Structures: Theory and Applications

Basic Counting Principles Discrete Mathematical Structures: Theory and Applications

Basic Counting Principles Discrete Mathematical Structures: Theory and Applications

Basic Counting Principles Discrete Mathematical Structures: Theory and Applications

Pigeonhole Principle The pigeonhole principle is also known as the Dirichlet drawer principle, or the shoebox principle. Discrete Mathematical Structures: Theory and Applications

Pigeonhole Principle Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Pigeonhole Principle Discrete Mathematical Structures: Theory and Applications

Permutations Discrete Mathematical Structures: Theory and Applications

Permutations Discrete Mathematical Structures: Theory and Applications

Combinations Discrete Mathematical Structures: Theory and Applications

Combinations Discrete Mathematical Structures: Theory and Applications

Generalized Permutations and Combinations Discrete Mathematical Structures: Theory and Applications

Generalized Permutations and Combinations Discrete Mathematical Structures: Theory and Applications

Integers and Induction CSE 2353 OUTLINE Sets Logic Proof Techniques Integers and Induction Relations and Posets Functions Counting Principles Boolean Algebra

Learning Objectives Learn about Boolean expressions Become aware of the basic properties of Boolean algebra Explore the application of Boolean algebra in the design of electronic circuits Learn the application of Boolean algebra in switching circuits Discrete Mathematical Structures: Theory and Applications

Two-Element Boolean Algebra Let B = {0, 1}. Discrete Mathematical Structures: Theory and Applications

Two-Element Boolean Algebra Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Two-Element Boolean Algebra Discrete Mathematical Structures: Theory and Applications

Two-Element Boolean Algebra Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Boolean Algebra Discrete Mathematical Structures: Theory and Applications

Boolean Algebra Discrete Mathematical Structures: Theory and Applications

Logical Gates and Combinatorial Circuits Discrete Mathematical Structures: Theory and Applications

Logical Gates and Combinatorial Circuits Discrete Mathematical Structures: Theory and Applications

Logical Gates and Combinatorial Circuits Discrete Mathematical Structures: Theory and Applications

Logical Gates and Combinatorial Circuits Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Logical Gates and Combinatorial Circuits The Karnaugh map, or K-map for short, can be used to minimize a sum-of-product Boolean expression. Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications