Mathematical Notions and Terminology

Slides:



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

Theory Of Automata By Dr. MM Alam
Chapter Chapter Summary Languages and Grammars Finite-State Machines with Output Finite-State Machines with No Output Language Recognition Turing.
CSCI 2670 Introduction to Theory of Computing October 19, 2005.
Regular Languages Sequential Machine Theory Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 3 Comments, additions and modifications.
Regular Languages Sequential Machine Theory Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 3 Comments, additions and modifications.
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
Costas Busch - RPI1 Mathematical Preliminaries. Costas Busch - RPI2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
Courtesy Costas Busch - RPI1 Mathematical Preliminaries.
Topics Automata Theory Grammars and Languages Complexities
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
Introduction Chapter 0. Three Central Areas 1.Automata 2.Computability 3.Complexity.
Foundations of Discrete Mathematics Chapter 3 By Dr. Dalia M. Gil, Ph.D.
CSC312 Automata Theory Lecture # 2 Languages.
CSC312 Automata Theory Lecture # 2 Languages.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
An ordered n-tuple is a set of n objects with an order associated with them. If n objects are represented by x 1, x 2,..., x n, then we write the ordered.
1 Chapter 1 Introduction to the Theory of Computation.
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.
Mathematical Preliminaries. Sets Functions Relations Graphs Proof Techniques.
Push-down Automata Section 3.3 Fri, Oct 21, 2005.
Introduction to Theory of Automata By: Wasim Ahmad Khan.
8.3 Representing Relations Directed Graphs –Vertex –Arc (directed edge) –Initial vertex –Terminal vertex.
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.
Regular Grammars Chapter 7. Regular Grammars A regular grammar G is a quadruple (V, , R, S), where: ● V is the rule alphabet, which contains nonterminals.
4.3 Recursive Definitions and Structural Induction Sometimes it is difficult to define an object explicitly. However, it may be easy to define this object.
Mathematical Notions and Terminology Lecture 2 Section 0.2 Fri, Aug 24, 2007.
Mathematical Preliminaries
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
Lecture # 12. Nondeterministic Finite Automaton (NFA) Definition: An NFA is a TG with a unique start state and a property of having single letter as label.
Cardinality with Applications to Computability Lecture 33 Section 7.5 Wed, Apr 12, 2006.
DISCRETE COMPUTATIONAL STRUCTURES
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Mathematical Foundations of Computer Science Chapter 3: Regular Languages and Regular Grammars.
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.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
FUNCTIONS.
L ECTURE 3 T HEORY OF AUTOMATA. E QUIVALENT R EGULAR E XPRESSIONS Definition Two regular expressions are said to be equivalent if they generate the same.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
Lecture #2 Advanced Theory of Computation. Languages & Grammar Before discussing languages & grammar let us deal with some related issues. Alphabet: is.
Chapter 1 INTRODUCTION TO THE THEORY OF COMPUTATION.
Cardinality with Applications to Computability
Recap lecture 5 Different notations of transition diagrams, languages of strings of even length, Odd length, starting with b, ending in a (with different.
Relations.
Lecture # 2.
BCT 2083 DISCRETE STRUCTURE AND APPLICATIONS
Relations Chapter 9.
Introduction to the Theory of Computation
Language Theory Module 03.1 COP4020 – Programming Language Concepts Dr. Manuel E. Bermudez.
Representing Relations
Aaron Bloomfield CS 202 Epp, section ???
Relation and function.
Theory of Computation Lecture # 9-10.
Deterministic Finite Automata
Jaya Krishna, M.Tech, Assistant Professor
COP4620 – Programming Language Translators Dr. Manuel E. Bermudez
Chapter 7 Regular Grammars
Recap lecture 29 Example of prefixes of a language, Theorem: pref(Q in R) is regular, proof, example, Decidablity, deciding whether two languages are equivalent.
NFAs and Transition Graphs
Specification of tokens using regular expressions
Mathematical Background 1
Mathematical Background 1
Mathematical Background
Chapter 1 Introduction to the Theory of Computation
CSC312 Automata Theory Lecture # 2 Languages.
Recap Lecture 3 RE, Recursive definition of RE, defining languages by RE, { x}*, { x}+, {a+b}*, Language of strings having exactly one aa, Language of.
LECTURE # 07.
Terminology and Symbols
Presentation transcript:

Mathematical Notions and Terminology Lecture 2 Section 0.2 Fri, Sep 1, 2006

Functions and Relations A function associates every element of its domain with exactly one element of its range, or codomain.

Functions and Relations Let f : A  B be a function. f is one-to-one if f(x) = f(y)  x = y. Equivalently, x  y  f(x)  f(y).

Functions and Relations F is onto if for every y  B, there is x  A such that f(x) = y.

A One-to-one Correspondence A hallway has 100 lockers, numbered 1 through 100 . All 100 lockers are closed. There are 100 students, numbered 1 through 100 .

A One-to-one Correspondence For each k, student k’s instructions are to reverse the state of every k-th locker door, starting with locker k. If all 100 students do this, which lockers will be left open?

A One-to-one Correspondence Which students should be sent down the hall so that exactly the prime-numbered lockers are left open? Is it possible to leave any specified set of lockers open?

A One-to-one Correspondence Let L be the set of all lockers and let S be the set of all students. Let f :(S)  (L) be defined as f(A) is the set of locker doors left open after the students in A have gone down the hall.

A One-to-one Correspondence Show that f is a one-to-one correspondence.

Functions and Relations A subset of A  A is called a (binary) relation on A.

Functions and Relations A binary relation R is an equivalence relation if it is Reflexive: (x, x)  R. Symmetric: (x, y)  R  (y, x)  R. Transitive: (x, y)  R and (y, z)  R  (x, z)  R. for all x, y, z  R.

Graphs A graph consists of a finite set of vertices and a finite set of edges. In a directed graph, each edge has a direction from one vertex to another.

Graphs and Relations A graph may be used to represent a relation. Draw a vertex for every element in A. If a has the relation to b, then draw an edge from a to b.

Strings and Languages An alphabet is a finite set of symbols, typically letters, digits, and punctuation. A string is a finite sequence of symbols from the alphabet. The empty string  is the unique string of length 0.

Strings and Languages Let the alphabet be  = {a, b}. Some strings:  aaa abb abbababbabbbababab

Lexicographical Order Assume that the symbols themselves are ordered. Group the strings according to their length. Then, within each group, order the strings “alphabetically” according to the ordering of the symbols.

Lexicographical Order Let the alphabet be  = {a, b}. The set of all strings in lexicographical order is {, a, b, aa, ab, ba, bb, aaa, …, bbb, aaaa, …, bbbb, …}