Lec 2
Lec 2
DEFINITION: PALINDROME
• Examples:
If ∑ = { x } then ∑* = { Λ, x, xx, xxx, … }
If ∑ = { 0, 1 } then ∑* = { Λ, 0, 1, 00, 01, 10,
11, 000, 001, … }
If ∑ = { a, b, c } then ∑* = { Λ, a, b, c, aa, ab,
ac, ba, bb, bc, ca, cb, cc, aaa,
…}
LEXICOGRAPHIC ORDER
• Note that we listed the words in a language in size
order (i.e., words of shortest length first), and then
listed all the words of the same length
alphabetically.