Theory of Automata Chapter 1
Theory of Automata Chapter 1
CHAPTER 2
WHAT DOES AUTOMATA MEAN?
• INTELLIGENT
• AUTOMATION
THEORY OF AUTOMATA
• Theory of automata is a theoretical branch of computer science and mathematical. It is the study
of abstract machines and the computation problems that can be solved using these machines. The
abstract machine is called the automata.
• The main motivation behind developing the automata theory was to develop methods to describe
and analyse the dynamic behaviour of discrete systems.
ASSIGNMENT
• PHYSICAL AUTOMATA
• SOFTWARE AUTOMATA
• ALGORITHMIC AUTOMATA
LANGUAGE
• A certain specified set of strings of characters from alphabets will be called language.
• A language is a collection of appropriate string. A language which is formed over Σ can
be finite or infinite.
• A finite non-empty set of symbols (called letters), is called an alphabet. It is denoted by Σ ( greek letter sigma).
Example
• Σ = {a,b}
• Σ = {i,j,k}
• Σ (alphabet) includes letters, digits and a variety of operators including sequential operators such as goto and If
SYMBOLS
• Symbols are an entity or individual objects, which can be any letter, alphabet or any picture.
Example:
• 1, a, b, #
STRINGS
• It is a finite collection of symbols from the alphabet. The string is denoted by w.
Example
• If Σ = {a,b} then
• Sometimes a string with no symbol at all is used, denoted by (small greek letter lambda) λ or (capital greek Letter lambda) Λ, is called an
empty string or null string.
Length of String
• The number of symbols in a string w is called the length of a string. It is denoted by |w|.
• Now consider an alphabet Σ2= {B, ba, bab, d} and a string bababb.
• Which shows that the second group cannot be identified as a string, defined over
• Σ = {a, b}.
• As when this string is scanned by the compiler (lexical analyzer), first symbol b is identified as a letter Belonging to Σ, while for the
second letter the lexical analyzer would not be able to identify, so while defining An alphabet it should be kept in mind that ambiguity
should not be created.
LENGTH OF STRINGS
Definition
• The length of string s, denoted by |s|, is the number of letters in the string.
Example
• descriptive definition,
• recursive definition,
• using Regular expressions(re) and using finite automaton(fa) etc.
1. Descriptive definition of language
• The language is defined, describing the conditions imposed on its words.
Example
• The language L of strings of odd length, defined over σ={a}, can be written as
• The language L of strings that does not start with a, defined over Σ ={a,b,c}, can be written as
• The language EVEN-EVEN, of strings with even number of a’s and even number of b’s, defined over Σ={a,b}, can be written as