Chapter 13
Chapter 13
Chapter 13
Modeling Computation
13.1 Languages and Grammars
Theory of computation
Compiler design
Automata theory
FREE: For Complete Playlist:
https://www.youtube.com/c/FahadHussaintutorial/playlists
Chapter 13 Modeling Computation
13.1 Languages and Grammars
Automata theory (also known as Theory Of Computation) 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.
Automata enables scientists to understand how machines
compute the functions and solve problems. 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”.
Now, let’s understand the basic terminologies, which
are important and frequently used in the Theory of
Computation.
Symbol:
A symbol (often also called a character) is the smallest building block, which can be any
alphabet, letter, or picture.
Alphabets (Σ):
Alphabets are a set of symbols, which are always finite.
String:
A string is a finite sequence of symbols from some alphabet. A string is generally
denoted as w and the length of a string is denoted as |w|.
Empty string is the string with zero occurrence of symbols,
represented as ε. Nmber of Strings (of length 2) that can
be generated over the alphabet {a, b}:
- -
a a
a b
b a
b b