Unit 1
Unit 1
is a theoretical branch of Computer Science and Mathematics, which mainly deals with the logic of
computation with respect to simple machines, referred to as automata.
Before learning Automata, you should have a basic understanding of string, language,
alphabets, symbols.
This automaton consists of states and transitions. The State is represented by circles, and
the Transitions is represented by arrows.
Symbols:
The main motivation behind developing Automata Theory was to develop methods to describe and
analyze the dynamic behavior of discrete systems.
Automata originated from the word “Automaton” which is closely related to “Automation”.
Symbols are an entity or individual objects, which can be any letter, alphabet or any picture.
Example : 1, a, b, #
Alphabets:
Examples:
1. ∑ = {a, b}
2. ∑ = {A, B, C, D}
3. ∑ = {0, 1, 2}
4. ∑ = {0, 1, ....., 5]
5. ∑ = {#, β, Δ}
String:
It is a finite collection of symbols from the alphabet. The string is denoted by w.
Example 1:
If ∑ = {a, b}, various string that can be generated from ∑ are {ab, aa, aaa, bb, bbb, ba, aba. ... }.
Example 2:
1. w = 010
2. Number of Sting |w| = 3
Language:
Example: 1
Example: 2
L2 = {Set of all strings starts with 'a'}or any string that starts with a
and ends with a.
∑𝟎 = ∈
Finite Automata
o Finite automata are used to recognize patterns.
o It takes the string of symbol as input and changes its state accordingly. When the desired
symbol is found, then the transition occurs.
o At the time of transition, the automata can either move to the next state or stay in the same
state.
o Finite automata have two states, Accept state or Reject state. When the input string is
processed successfully, and the automata reached its final state, then it will accept.
we can say that it is a model, machine that is used to recognized whether the string comes under the
language or not.(Automata)
Types of Automata:
There are two types of finite automata:
1. DFA
2. NFA
Some important points about DFA and NFA:
Clean positive : set of all string possible but not epsilon i.e sigma^0.
Pumping lemma : one of the method is used to check whether the language us regular or not(arises in case of
infinite type) it is a negative test .
What is the pumping lemma for regular languages, and what does it imply about the nature
of such languages?
After pumping y if that string comes under the language that means test passed and it is undecidable whether it
is regular or not
if string after pumping not comes under the language then test failed and it will going to be a non regular
language.
If L is a regular language
What the Pumping Lemma implies about the nature of regular languages:
Closure Properties:
Complexity Analysis
Describe the state elimination method to convert a DFA to a regular expression. Provide a step-by-step
process for converting a DFA to a regular expression.
State elimination method is used to simplify and minimize finite automata while preserving
their language recognition capabilities. This method is commonly used to convert a non-
deterministic finite automaton (NFA) into a deterministic finite automaton