© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Manish Kumar PRE. 1 Theory Of Computation Pre-requisite.

Slides:



Advertisements
Similar presentations
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Advertisements

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
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 DISCRETE STRUCTURE ABDUL BASIT TAHIR, KAMRAN ALI, FAIZAN ILLAHI, NOMAN AHMAD, ARSALAN MUBASHIR.
Discrete Structures Chapter 5 Relations and Functions 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.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
CSC 2300 Data Structures & Algorithms January 16, 2007 Chapter 1. Introduction.
Discrete Math 6A Max Welling. Recap 1. Proposition: statement that is true or false. 2. Logical operators: NOT, AND, OR, XOR, ,  3. Compound proposition:
Discrete Maths Objective to re-introduce basic set ideas, set operations, set identities , Semester 2, Set Basics 1.
February 5, 2015Applied Discrete Mathematics Week 1: Logic and Sets 1 Homework Solution PQ  (P  Q) (  P)  (  Q)  (P  Q)  (  P)  (  Q) truetruefalsefalsetrue.
Sets.
This section will discuss the symbolism and concepts of set theory
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Logics for Data and Knowledge Representation Introduction to Algebra Chiara Ghidini, Luciano Serafini, Fausto Giunchiglia and Vincenzo Maltese.
February 12, 2015Applied Discrete Mathematics Week 2: Functions and Sequences 1Exercises Question 1: Given a set A = {x, y, z} and a set B = {1, 2, 3,
Discrete Maths Objectives to show the connection between relations and functions, and to introduce some functions with useful, special properties ,
My Introduction Name: Prakash ADHIKARI Academic Qualification: Master’s Degree Research, Universite Lumiere-IUT Lumiere, Lyon - 2(ULL-2), France Master’s.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Michaelmas Term 2004 Discrete Mathematics CSC 141 Discrete Mathematics Dr. Corina Sas and Ms. Nelly Bencomo
ICS 253: Discrete Structures I
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
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.
Fall 2002CMSC Discrete Structures1 … and the following mathematical appetizer is about… Functions.
10/26/20151 … and the following mathematical appetizer is about… Functions.
1 Discrete Structures – CNS 2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 1 The Foundations: Logic, Sets,
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.
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
CompSci 102 Discrete Math for Computer Science
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Fall 2003CMSC Discrete Structures1 … and now for something completely different… Set Theory Actually, you will see that logic and set theory are.
ELEMENTARY SET THEORY.
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.
Basic Structures: Sets, Functions, Sequences, and Sums.
Introduction Episode 0 What is TOC (Theory of Computation) about? Giorgi Japaridze Theory of Computability Subject: The fundamental mathematical properties.
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.
Functions Discrete Structure. L62 Functions. Basic-Terms. DEF: A function f : A  B is given by a domain set A, a codomain set B, and a rule which for.
Based on slides by Patrice Belleville and Steve Wolfman CPSC 121: Models of Computation Unit 11: Sets.
Chapter 7 Sets and Probability Section 7.1 Sets What is a Set? A set is a well-defined collection of objects in which it is possible to determine whether.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 1 The Foundations: Logic, Sets,
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
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.
Ch02-Basic Structures: Sets, Functions, Sequences, Sums, and Matrices 1.
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.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Functions 7/7/2016COCS - Discrete Structures1. Functions A function f from a set A to a set B is an assignment of exactly one element of B to each element.
Applied Discrete Mathematics Week 2: Functions and Sequences
Functions.
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
… and the following mathematical appetizer is about…
Functions.
Discrete Math for Computer Science CSC 281
CS100: Discrete structures
Functions.
… and the following mathematical appetizer is about…
… and the following mathematical appetizer is about…
Applied Discrete Mathematics Week 3: Sets
Properties of Functions
2.1 – Symbols and Terminology
Presentation transcript:

© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Manish Kumar PRE. 1 Theory Of Computation Pre-requisite

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 2 Learning Objective  Understanding the basic concepts of sets and properties  Understanding of Functions

© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63, by Manish Kumar PRE. 3 Introduction

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 4 Basic Concepts of Set Roughly speaking, a set is a collection of objects that satisfy a certain property, but in set theory, the words “set” and “element” are intentionally left as undefined. There is also another undefined relation , called the “membership” relation. If S is a set and a is an element of S, then we write a  S, and we can say that a belongs to S.

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 5 Basic Concepts of Set The { } notation If a set M has only a finite number of elements say, 3, 7, and 11, then we can write M = {3, 7, 11} (the order in which they appear is unimportant.) A set can also be specified by a defining property, for instance S = {x   : -2 < x < 5} (this is almost always the way to define an infinite set).  = Set of Real numbers

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 6 Basic Concepts of Set Two sets are equal if and only if they have the same elements. For example, {1, 2, 3} = {3, 1, 2} = {1, 2, 3, 2} Subsets: Given two sets A and B, we say that A is a subset of B, denoted by In other words, A is a subset of B if all elements in A are also in B.

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 7 Basic Concepts of Sets An example of subset: Let E be the English alphabet, hence it is a set of 26 letters E = {a, b, c, …, x, y, z} In the Hawaiian alphabet however, it contains only 7 consonants H = { a, e, i, o, u, h, k, l, m, n, p, w} Hence H is a subset of E.

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 8 Basic Concepts of Sets Proper Subsets: Given two sets A and B, we say that A is a proper subset of B, denoted by BA  if BABA  and In other words, A is a proper subset of B if all elements in A are also in B but A is “smaller” than B.

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 9 Basic Concepts of Set Exercises Determine whether each statement is true or false. a) 3  {1,2,3} True b) 1  {1} False c) {2}  {1, 2 } False d) {3}  {1, {2}, {3}} True e) 1  {1} True f) {2}  {1, {2},{3}} False g) {1}  {1, 2} True h) 1  {{1}, 2} False i) {1}  {1, {2}} True j) {1}  {1} True

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 10 What is an Operating System? Operations of Sets: Let A and B be two subsets of a larger set U, we can define the following, 2. Intersection of A and B, 3. Difference of B minus A, 4. Complement of A, 1. Union of A and B,

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 11 Basic Concepts of Set Cartesian Products: For any two sets A and B, the Cartesian Product of A and B, denoted by A×B (read A cross B), is the set of all ordered pairs of the form (a, b) where a  A and b  B. Given sets A 1, A 2, …, A n we can define the Cartesian product A 1 × A 2 × · · ·× A n as the set of all ordered n-tuples. e.g. {a,b}  {1,2} = {(a,1),(a,2),(b,1),(b,2)}

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 12 Laws of Set theory

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 13 Function A function “f “ from a set A to a set B is an assignment of exactly one element of B to each element of A. We write f(a) = b if b is the unique element of B assigned by the function f to the element a of A. If f is a function from A to B, we write f: A  B (note: Here, “  “ has nothing to do with if… then)

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 14 Function Cont. If f:A  B, we say that A is the domain of “f” and B is the codomain of function f. If f(a) = b, we say that b is the image of a and a is the pre-image of b. The range of f:A  B is the set of all images of elements of A. We say that f:A  B maps A to B.

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 15 Function Cont. Let us take a look at the function f:P  C with P = {Linda, Max, Kathy, Peter} C = {Boston, New York, Hong Kong, Moscow} f(Linda) = Moscow f(Max) = Boston f(Kathy) = Hong Kong f(Peter) = New York Here, the range of f is C.

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 16 Function Cont. Let us re-specify f as follows: f(Linda) = Moscow f(Max) = Boston f(Kathy) = Hong Kong f(Peter) = Boston Is f still a function? What is its range? {Moscow, Boston, Hong Kong} yes

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 17 Function Cont. Other ways to represent f: BostonPeter Hong Kong Kathy BostonMax MoscowLindaf(x)x LindaMax Kathy PeterBoston New York Hong Kong Moscow

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 18 Function Cont. If the domain of our function f is large, it is convenient to specify f with a formula, e.g.: f:R  R f(x) = 2x This leads to: f(1) = 2 f(3) = 6 f(-3) = -6 …

© Bharati Vidyapeeth’s Institute of Computer Applications and Management,, New Delhi-63, by Manish Kumar PRE. 19 References Kenneth H. Rosen, “Discrete mathematics and its applications”, Forth Edition,