Theory of Computing Topics Formal languages automata computability and related matters Purposes To know the foundations and principles of computer science.

Slides:



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

Union Definition: The union of sets A and B, denoted by A B, contains those elements that are in A or B or both: Example: { 1, 2, 3} {3, 4, 5} = { 1,
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Instructor: Hayk Melikya
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.
Review of Mathematical Notation / Terminology
CS 310 – Fall 2006 Pacific University Theoretical Computer Science CS 310 Chadd Williams Office Mon 3:00 – 4:00 PM 202 Strain.
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
CS 310 – Fall 2006 Pacific University Theoretical Computer Science CS 310 Chadd Williams Office Mon 10:30-11:30 am 202 Strain.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
modified from UCI ICS/Math 6D, Fall Sets+Functions-1 Sets “Set”=Unordered collection of Objects “Set Elements”
Theoretical Computer Science COMP 335 Fall 2004
Equivalence Relations: Selected Exercises
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.
Sets.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Sets.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Sets Defined A set is an object defined as a collection of other distinct objects, known as elements of the set The elements of a set can be anything:
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
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.
April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.
Formal Semantics of Programming Languages 虞慧群 Topic 1: Introduction.
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Discrete Mathematics R. Johnsonbaugh
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.
THEORY OF COMPUTATION Komate AMPHAWAN 1. 2.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Sets.
Chapter 2 With Question/Answer Animations. Section 2.1.
Basic Structures: Sets, Functions, Sequences, and Sums.
Introduction to Set theory. Ways of Describing Sets.
Discrete Mathematics SETS. What is a set? ^A set is a unordered collection of “objects”  People in a class: {A yşe, B arış, C anan }  Cities in Turkey.
Discrete Structures – CNS2300
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.
Based on slides by Patrice Belleville and Steve Wolfman CPSC 121: Models of Computation Unit 11: Sets.
Discrete Mathematics CS 2610 January 27, part 2.
ITD1111 Discrete Mathematics & Statistics STDTLP
Discrete Mathematics Set.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Theory of Computing Topics Formal languages automata computability and related matters Purposes To know the foundations and principles of computer science.
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.
Introduction to Set Theory (§1.6) A set is a new type of structure, representing an unordered collection (group, plurality) of zero or more distinct (different)
CPCS 222 Discrete Structures I
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.
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
Introduction Chapter 0.
Discrete Structures – CNS 2300
Discrete Mathematical The Set Theory
Introduction to the Theory of Computation
Sets Section 2.1.
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
CSE15 Discrete Mathematics 02/15/17
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
CS100: Discrete structures
Set Operations Section 2.2.
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.
MCS680: Foundations Of Computer Science
Introduction Chapter 0.
Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007
Lecture Sets 2.2 Set Operations.
Sets & Set Operations.
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
Presentation transcript:

Theory of Computing Topics Formal languages automata computability and related matters Purposes To know the foundations and principles of computer science To learn the material that is useful in subsequent course Prerequisites Fundamentals of data structures and algorithms Discrete mathematics that includes set, functions, relations, logic, and mathematical reasoning Dr.K.Suvarna Vani, Basics of Sets

1.1.1 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 1 The set of positive integers less than 100 can be denoted as Definition 2. Two sets are equal if and only if they have the same elements. Example 2 A set can also consists of seemingly unrelated elements: Chapter 1 Introduction to The Theory of Computation Dr.K.Suvarna Vani, Basics of Sets

A set can be described by using a set builder notation. A set can be described by using a Venn diagram. Example 5 Draw a Venn diagram that presents V, the set of vowels in English alphabet. a,e,i,o,u V U Dr.K.Suvarna Vani, Basics of Sets

Definition 3. The set A is said to be a subset of B if and only if every element of A is also an element of B. We use the notation to indicate that A is a subset of the set B. The set that has no elements is called empty set, denoted by. A B U Dr.K.Suvarna Vani, Basics of Sets

Definition 4. The power set of a set S is the set of all subsets of S, denoted by P(S) or. Set Operations: Dr.K.Suvarna Vani, Basics of Sets

AB U B U AB U A U

Set Identities Table 1 Set Identities IdentityName Identity laws Domination laws Idempotent laws Complementation laws Commutative laws Associative laws Distributive laws De Morgan’s law Dr.K.Suvarna Vani, Basics of Sets

1.1.2 Functions and Relations Definition 1. Let A and B be sets. A function f from A to 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. Example 1 Let set A={Adams, Chou, Goodfriend, Rodriguez, Stevens} and B={A,B,C,D,F}. Let G be the function that assigns a grade to a student in our theory of computation. Adames Chou Goodfriend Rodriguez Stevens ABCDFABCDF G The domain of G is the set A={Adams, Chou, Goodfriend, Rodriguez, Stevens}, and the range of G is the set {A,B,C,F}. x y z A function x Not a function Dr.K.Suvarna Vani, Basics of Sets

Considering the function whose domain and range are in the set of integers. We are often interested only in the behavior of these functions as their arguments become very large. Example 2 Dr.K.Suvarna Vani, Basics of Sets

Definition 3 Let A and B be the sets. A relation R from A to B is a subset of. Functions can be consider as relations, but relations are more general than functions. Example 3 Let A={1,2,3,4}. R={(1,2), (2,3),(3,1),(4,4)} is a relation from A to A, and it is also a function from A to A. Example 4 R={(1,2), (2,3),(1,3),(1,4)} is a relation but not a function. Example 5 Let A be the set of students in the TSU. Let B the set of courses. The set R that consists of those pairs (a,b), where a is a student enrolled in course b, is a relation from A to B. Dr.K.Suvarna Vani, Basics of Sets

Definition 4 R is an equivalence relation if for any pair (x,y) of R xRx for all x (reflexivity) If xRy then yRx (symmetry) If xRy and yRz, then xRz. (transitivity) We usually use to denote equivalence relation. Example 7 ‘=’ on the set of integers is an equivalence relation. Dr.K.Suvarna Vani, Basics of Sets

Definition 4 R is an equivalence relation if for any pair (x,y) of R xRx for all x (reflexivity) If xRy then yRx (symmetry) If xRy and yRz, then xRz. (transitivity) We usually use to denote equivalence relation. Example 7 ‘=’ on the set of integers is an equivalence relation. Dr.K.Suvarna Vani, Basics of Sets

1.1.3 Graphs and Trees Example 1 v7 v1 v2 v5 v4 v9 v8 v3 e1 e3 e4 e5 e7 e6 e2 e8 e9 e10 A directed graph (digraph) Example 2 v7 v1 v2 v5 v4 v9 v8 v3 e1 e3 e4 e5 e7 e6 e2 e8 e9 e10 An undirected graph Dr.K.Suvarna Vani, Basics of Sets

e2 Example 3 v7 v1 v2 v5 v4 v9 v8 v3 e1 e3 e4 e5 e7 e6 e8 e9 e10 Dr.K.Suvarna Vani, Basics of Sets

Definition 3 A tree is a directed graph that has no cycles. There is a one distinct vertex in tree, called the root. v1 v6 v8 v4 v3 v2 v5 v7v9 root Parent of v6 Child of v3 Level 1 Level 0 Level 2 Level 3 Height=3 Dr.K.Suvarna Vani, Basics of Sets

1.1.4 A Proof Technique—Mathematical Induction Dr.K.Suvarna Vani, Basics of Sets