Académique Documents
Professionnel Documents
Culture Documents
CHAPTER 1: INTRODUCTION
Why study automata?
Terminology and mathematical concepts
Formal proof
Concepts of automata theory
CONT.
CONT.
CONT.
AUTOMATA THEORY
Thus, set {7, 21, 57} contains the element 7, 21, and 57
7 {7, 21, 57} and 8 {7, 21, 57}
SETSCONT.
10
Is the set of all pairs wherein the first element is a member of A and
the second element is a member of B.
Also can take the Cartesian product of k sets, A1, A2, , Ak, written
A1 A2 Ak, It is the set consisting of all k-tuples (a1,a2,,ak)
where ai Ai.
k
Example: The set N2 equals N N . It consists of all pairs of natural numbers. May
also write as {(i,j)|i,j 1}.
11
The notation for saying that f is a function with domain D and range R
is
f:DR
12
f(n)
This function adds 1 to its input and then outputs the result modulo 5.
A number modulo m is the remainder after division by m. For
example, the minute hand on a clock face counts modulo 60. When
we do modular arithmetic we define Zm = {0,1,2,,m-1}.With this
notation, the aforementioned function f has the form f : Z5 Z5.
13
14
15
SCCISSORS
PAPER
STONE
SCCISSORS
FALSE
TRUE
FALSE
PAPER
FALSE
FALSE
TRUE
STONE
TRUE
FALSE
FALSE
From table can determine that SCISSORS beats PAPER is TRUE and that PAPER beats
SCISSORS is FALSE.
Describing predicates with sets instead of functions is more convenient. The predicate P :
D {TRUE, FALSE} may be written (D,S), where S = {a D| P(a) = TRUE}, or simply S
if the domain D is obvious from the context. Hence the relation beats may written
{(SCISSORS, PAPER), (PAPER, STONE), (STONE SCISSORS)}.
16
1.
2.
3.
18
GRAPHS
(a) Degree =
(b) Degree =
The number of edges at a particular node is the degree of that
node.
No more than one edge is allowed between any two nodes.
19
GRAPHSCONT.
(a)
5
2
1
(b)
3
20
GRAPHSCONT.
21
GRAPHSCONT.
GRAPHSCONT.
3
5
A path in which all the arrows point in the same direction as its steps
is called a directed path.
1 = {0,1};
2 = {a,b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z};
= {0,1,x,y,z}.
24
25
(, 0,1,00,01,10,11,000,)
26
BOOLEAN LOGIC
27
BOOLEAN LOGICCONT.
00=0
01=1
10=1
11=0
00=1
01=0
10=0
11=1
00=1
01=1
10=0
11=1
28
BOOLEAN LOGICCONT.
29
FORMAL PROOF
30
DEDUCTIVE PROOFS
Consists of a sequence of statements whose truth
leads from some initial statement, called hypothesis
or the given statement(s), to a conclusion
statement.
Hypothesis may be true or false, typically consists
of several independent statements connected by
logical AND
Theorem is proved when go from a hypothesis H to
a conclusion C, the statement is if H then C, says
that C is deduced from H.
31
DEDUCTIVE PROOFSCONT.
Example:
32
REDUCTION TO DEFINITIONS
Original Statement
New Statement
S is finite
U is infinite
For no integer p is U= p
T is complement of S
S T = U and S T =
33
REDUCTION TO DEFINITIONSCONT.
Need to use a common proof technique called proof by
contradiction, which assume that the conclusion is false. Then
use the assumption, together with parts of the hypothesis, to
prove the opposite of one of the given statements of the
hypothesis.
The contradiction of conclusion is T is finite. Restate the
assumption that T is finite as T= m for some integer m.
One of the given statement, S T = U and S T = . Element
of U are exactly the elements of S and T. Thus, there must be n +
m elements of U. Since n + m is an integer, we have shown that
U= n + m, follows that U is finite. But the statement that U is
finite contradicts the given statement that U is infinite.
By the principle of proof by contradiction we may conclude the
theorem is true.
34
REDUCTION TO DEFINITIONSCONT.
35
If-And-Only-If Statements
36
Contrapositive
37
Counterexample
A strategy for implementing a program for example and
need to decide whether or not the theorem is true.
The resolve the question, we may alternately try to prove
the theorem, and if cannot, try to prove that the statement
is false.
Proof by Contradiction
Another way to prove a statement of form if H then C is to
prove the statement H and not C implies falsehood.
Start by assume hypothesis H and the negation of the
conclusion C.
Complete the proof by showing something known to be
false. (example Theorem 1.5)
38
INDUCTIVE PROOFS
Form of proof that is essential when dealing with
recursively defined objects or concepts such as
trees and expressions of various sorts.
Inductions on Integers
2.
The Induction Principle: If we prove S(i) and we prove that for all n
i, S(n) implies S(n+1), then we may conclude S(n) for all ni.
39
INDUCTIVE PROOFSCONT.
40
INDUCTIVE PROOFSCONT.
Divide (1.2) by x, to get:
x 2+
(1.3)
41
42