Lecture 1
Lecture 1
Otomata Teorisi
Sunu I
• Very hard to state all the rules for the spoken language
• Slang, idiom, dialect, poetic metaphor, etc.
• Formal: All the rules for the language are explicitly stated
(what strings of symbols can occur)
• No liberties are tolerated
• No reference to any deep understanding is required
• Language
• Symbols on paper not expression of ideas
• Not communication among intellects but a gam of symbols with
formal rules
Alphabet
• Σ = {a b c d e … z}
• Σ = {0 1 2 3 4 5 6 7 8 9}
• L3 = {any finite string of alphabet letters that does not start
with letter zero}
• L3 looks like the set of all positive integers in base 10.
• L3 = {1 2 3 4 5 6 7 8 9 10 11 12 …}
• If we wanted to define L3 including word 0
• L3 = {any finite string of alphabet letters, if it starts with a 0,
has no more letters after the first}
Length Function
• reverse(xxx) = xxx
• reverse(145) = 541
• reverse(140) = 041 -> 140 is a word in L3 but not 041!
Palindrome
• Σ* = {Λ a b c aa ab ac ba bb bc ca cb cc aaa …}
• When we write the first several words in the language, we put
them in size order (length) and then list all the words of the
same length alphabetically
• This ordering is called lexicographic order
• In a dictionary, the word aardvark comes before cat. In
lexicographic order it is the other way.
• If sorted alphabetically, the list would start {Λ a aa aaa aaaa
…} would not inform us the real nature of the language
Star Operation on Words
• If S = {aa b} then
• S* = {Λ plus any word composed of factors of aa and b}
• S* = {Λ plus all strings of a’s and b’s in which the a’s occur
in even clumps}
• S* = {Λ b aa bb aab baa bbb aaaa aabb baab bbaa
bbbb aaaab aabaa aabbb baaaa baabb bbaab
bbbaa bbbbb …}
• aabaaab is not is S* since it has a clump of a’s of length 3
Star Operation on Words
• S = {xx xxx}
• S* = {Λ and all strings of more than one x}
• S* = {xn for n = 0 2 3 4 5 …}
• S* = {Λ xx xxx xxxx xxxxx xxxxxx …}
• Note that x is not in S*
• xxxxxx is in S* because of any of these
(xx)(xx)(xxx) or (xx)(xxx)(xx) or (xxx)(xx)(xx)
Also x6 is either x2x2x2 or x3x3
Final Remarks