What are the fundamental concepts of TOC_
What are the fundamental concepts of TOC_
The basic definitions of the fundamental concepts in the Theory of Computation (TOC) along with the
relevant examples are explained below −
Symbol
Symbols simply call it as a character.
It is an atomic unit, such as a digit, character, lowercase letter, etc. Sometimes it is also a word. The
formal language does not deal with the “meaning” of the symbols.
For example,
a,b,c,……………z
0,1,2,…………..9
+,-,*,%,…………special characters.
Alphabet
The set of characters is called as the alphabet.
For example,
Explore our latest online courses and learn new skills at your own pace. Enroll and become a certified
expert to boost your career.
Page 2 of 3
String or Word
A string is a finite set sequence of symbols choose from some alphabets
For example,
00011001 is a string from the binary alphabet Σ={0,1} and aabbcabcd is a string from the
alphabet Σ={a,b,c,d}.
Concatenation − wz = 0110111
Reversal − yR = aa0
E+ E* - {s}
For example,
E = {0, 1}
Length of string
It is the number of symbols in the string or word. It is denoted by |w|.
For example,
|X| = 10
Language
A language is a set of strings from some alphabet (finite or infinite). In other words, any subset L of E*
is a language in TOC.
Examples
E = {0, 1}
L = {x | x is in E* and x contains an even number of 0’s}
E = {0, 1, 2,., 9, .}
L = {x | x is in E* and x forms a finite length real number}
= {0, 1.5, 9.326,.}
E = {English words}
L = {x | x is in E* and x is a syntactically correct English sentence}