TCS Unit 1 Introduction
TCS Unit 1 Introduction
TCS Unit 1 Introduction
• Study of computational problems that can and cannot be solved using these machines, i.e.
what is the extent to which a problem is solvable on a computer.
What is automata theory?
Automata: A self operating machine
Link:
https://www.youtube.com/watch?v=SV57Yv8BXBc
ICA (50 M internal and 50 M external)
Text Books/Reference Books
• Formal languages
• Chomsky hierarchy
• Derivation Tree
Syntax(rules)
Proper use of grammar
Grammar
formed by strings
Composed by
letters : ‘t’, ‘h’ ,‘I’, ‘s’, ‘I’ ,‘s’,
letters ‘m’,’y’, ‘b’,’o’,’o’,’k’
Proper use of rules to form a string that is acceptable by machine is called formal languages
Formal Language and Automata Theory
(Infinite strings)
“ Design a machine which takes input a, b and produce output strings starts with b and ends with a”
Letters: {a, b, 0, 1}
Input (alphabets) : a,b
Strings: a,b,ab, aab, baa, bbaa, bbbbba, baaaab. baba………
Language (L) : baa, baba, bbaa, bbbbba…
DEFINITION
Alphabet: An alphabet is a finite set of symbols denoted by Σ in automata. Alphabets are a set of symbols used
to construct a language. Example, {0, 1} is binary alphabet, {A…, Z, a…z} is the alphabet set for the English
language.
String: A string is defined as a sequence of symbols of finite length. A string is denoted by w in automata.
Example, 000111 is a binary string.
(Length of a string w is denoted by |w|. For the previous case, |w| = |000111| = 6).
Chomsky Hierarchy
Applications : Vending Machines using ToC
Application :GAME
Applications of TOC in Compiler Construction
Grammar in TOC
Grammar in theory of computation is a finite set of formal rules that are generating syntactically correct
sentences.
THANK
YOU