CH 1
CH 1
CoSc3025
Chapter One
Introduction
Contents
What is automata?
operations automatically.
Automata?
Automata is the kind of machine which takes some
string as input and this input goes through a finite
number of states and may enter in the final state.
This automaton consists of states and transitions.
The State is represented by circles, and
the Transitions is represented by arrows.
An automaton with a finite number of states is
called a Finite Automaton (FA) or Finite State
Machine (FSM).
Finite Automaton (FA)
An automaton with a finite number of states is called a Finite
Automaton (FA) or Finite State Machine (FSM).
Finite automata are used to recognize patterns.
It takes the string of symbol as input and changes its state accordingly.
When the desired symbol is found, then the transition occurs.
At the time of transition, the automata can either move to the next
state or stay in the same state.
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.
Formal Definition of Finite
Automata (FA)
A finite automaton is a collection of 5-tuple
(Q, ∑, δ, q0, F), where:
Q: finite set of states
∑: finite set of the input symbol
q0: initial state
F: final state
δ: Transition function
Basic terminologies
Alphabets
Alphabets are a finite set of symbols. It is denoted
by ∑.
Examples:
∑ = {a, b}
∑ = {A, B, C, D}
∑ = {0, 1, 2}
∑ = {0, 1, ....., 5]
∑ = {#, β, Δ}
Symbols
Symbols are an entity or individual objects, which can be
any letter, alphabet or any picture.
Example: 1, a, b, #
Cont.….
String
It is a finite collection of symbols from the alphabet. The
string is denoted by w.
If ∑ = {a, b}, various string that can be generated from ∑
L2 = {Set of all strings starts with 'a'} = {a, aa, aaa, abb,
abbb, ababb} - Infinite Language
Transition Diagram
The possible input strings that can be generated are 10, 11, 110, 101,
111......., that means all string starts with 1.
Transition Table
The transition table is basically a tabular representation of the
transition function.
It takes two arguments (a state and a symbol) and returns a
state (the "next state").
A transition table is represented by the following things:
Columns correspond to input symbols.
Rows correspond to states.
Entries correspond to the next state.
The start state is denoted by an arrow with no source.
The accept state is denoted by a star.
Example
Types of Finite Automaton
Can be classified into two types −
Deterministic Finite Automaton (DFA)
Non-deterministic Finite Automaton (NDFA / NFA)
Deterministic Finite Automata (DFA)
symbol
Steps for converting NFA to DFA:
Step 1: Initially Q' = ϕ
Step 2: Add q0 of NFA to Q'. Then find the