Cs 8501 Toc Unit1 Ppt1
Cs 8501 Toc Unit1 Ppt1
Cs 8501 Toc Unit1 Ppt1
CS8501 ToC
5
JCT CET - Dept. of CSE
• So, for example, if I give you a sequence of
the following operations let say CC AC C A
which state will be landed. Ans:(2)
• Now let us look at a slightly more
mathematical example. Consider binary
strings that is strings consisting of zeros
and ones.
• And we look at the following set of strings,
which we call L,
•So, if you just spend a little time, and if you just try to
work it out, you will realize that the set of strings in the
line or in this set L is exactly those strings which end
with two zeros.
CS8501 ToC
9
JCT CET - Dept. of CSE
• Start state is in this case is 0 0;
• Our Accept state in this case is also the state 0 0.
• If the string is 1 1 0, initially start at the state 0 0;
• If 1 is given by this automata, it goes to the state 0 1.
• On the next 1, it goes to the state 1 1;
• And on the next 0, it goes to the state 1 0.
• Hence the string 1 1 0 is not accepted by the automata,
hence it can not end up at the accept state.
CS8501 ToC
23
JCT CET - Dept. of CSE
Introduction to Formal Proof ...
• Deductive Formal Proof consists of a sequence of
justified steps.
• Inductive Formal proof is recursive proof of a
parameterized statement that use the statement itself
with lower values of the parameter.
• Methods of formal proof involves,
• (1).Deductive Proof , (2).Reduction to definitions
(3).Other theorem forms , (4).Theorems that appear not to
be If – Then.
CS8501 ToC
24
JCT CET - Dept. of CSE
Deductive Proof
• Deductive Proof consists of a sequence of statements
whose truth is derived from initial statement called
hypothesis.
• Each step in the proof must follow by some accepted
logical principle from the given facts or some of the
previous statements in the deductive proof.
• The hypothesis may be true or false, typically depending
on the values of its parameters.
• Hypothesis consists of independent statements
connected by a logical AND.
CS8501 ToC
25
JCT CET - Dept. of CSE
1.Deductive Proof
• The format is
“If H then C”
The above statement is also expressed as (C is deduced
from H)
Where H Hypothesis
C Conclusion.
CS8501 ToC
26
JCT CET - Dept. of CSE
CS8501 ToC
27
JCT CET - Dept. of CSE
CS8501 ToC
28
JCT CET - Dept. of CSE
CS8501 ToC
29
JCT CET - Dept. of CSE
2.Reduction to Definitions
• If you are not sure how to start a proof convert all terms
in the hypothesis to their definitions.
• Here is an example of a theorem that is simple to prove
once we have expressed its statement in elementary
terms. It uses the following two definitions.
CS8501 ToC
30
JCT CET - Dept. of CSE
CS8501 ToC
31
JCT CET - Dept. of CSE
CS8501 ToC
32
JCT CET - Dept. of CSE
Theorem1.3 : Let S be a finite sub set of some infinite U. Let T be the
complement of S with respect to U.Then T is infinite.
CS8501 ToC
33
JCT CET - Dept. of CSE
3.Other Theorem Forms
• Theif - then, form of theorem is most common in typical areas of
mathematics. However we see other kinds of statements proved as
theorems also,
• Different Ways of Saying If – Then
First there are a number of kinds of theorem statements that look
different from a simple if H then C form, but are in fact saying the
same thing : if hypothesis H is true for a given value of the
parameter (s), then the conclusion C is true for the same value.
Here are some of the other ways in which,if H then C ,might appear.
1.H implies C
2.H only if C
3.C if H
4.When ever H holds, C follows.
• Induction on Integers
• Structural Inductions
• Mutual Induction
CS8501 ToC
53
JCT CET - Dept. of CSE
CS8501 ToC JCT CET - Dept. of CSE 54
CS8501 ToC JCT CET - Dept. of CSE 55
CS8501 ToC JCT CET - Dept. of CSE 56
CS8501 ToC JCT CET - Dept. of CSE 58
CS8501 ToC JCT CET - Dept. of CSE 59
CS8501 ToC JCT CET - Dept. of CSE 60
2.Structural Induction
• In automata theory, there are several recursively defined
structures about which we need to prove statements.
• The familiar notions of trees and expressions are
important examples.
• Like inductions, all recursive definitions have a basis
case, where one or more elementary structures are
defined and an inductive step, where more complex
structures are defined in terms of previously defined
structures.