Examples of two palindromes. Courtesy of Berkley University. |
Left to Right: radar
Right to Left: radar
Left to Right: submarine
Right to Left: enirambus
Notice that the second word does not make sense when you flip it. This distinguishes palindrome words from their other vocabulary. Other common examples include racecar, eye and level.
"Racecar" is also considered a palindrome. |
The Phrase read left to right: race car
The Phrase read right to left: race car
Each word in the phrase read left to right: race car
Each word in the phrase read right to left: ecar rac
Even though the original definition does not apply (where the words are flipped), the idea is that you can describe the entire phrase as a palindrome, and that this is a concept which can be applied to different concepts depending on how you interpret these. It has become a popular programming exercise, with many introductory coding courses including at least one activity dedicated to checking for palindromes. It has also been applied to dates, genetic codes, and other fields where language is involved. Palindrome's are fun and make reconstructing portions of language or code easier because of the simplistic rules which govern them.
Palindrome "Dates" |
ReplyDelete