1.

What Is The Difference Between Palindrome And Reverse Function?

Answer»

It is to be denoted that the words of PALINDROME are called palindromes.

REVERSE = w

Example: Σ={a,b},

PALINDROME={Λ , a, b, AA, bb, AAA, aba, bab, bbb, …}

If a is a word in some language L, then reverse (a) is the same STRING of letters spelled backwards, called the reverse of a.

e.g

reverse (XXX) = xxx
reverse (623) = 326
reverse (140) = 041

It is to be denoted that the words of PALINDROME are called palindromes.

Reverse = w

Example: Σ={a,b},

PALINDROME={Λ , a, b, aa, bb, aaa, aba, bab, bbb, …}

If a is a word in some language L, then reverse (a) is the same string of letters spelled backwards, called the reverse of a.

e.g

reverse (xxx) = xxx
reverse (623) = 326
reverse (140) = 041



Discussion

No Comment Found