In programming terms, Is there any difference between
Generate Anagrams, and
Generate Permutations of a string ????

Recommended Answers

Only that "rat" and "tar" are anagrams (and permutations (and palindromes)), but "rta" would just be a permutation.

Jump to Post

All 6 Replies

Only that "rat" and "tar" are anagrams (and permutations (and palindromes)), but "rta" would just be a permutation.

Only that "rat" and "tar" are anagrams (and permutations (and palindromes)), but "rta" would just be a permutation.

i dint get that clearly, why is rta not an anagram , is it because, its not there in the dictionary or something ???

Exactly right - rta is not a word or phrase.

Exactly right - rta is not a word or phrase.

Royal Terpsichore Associates methinks... :icon_twisted:

But that's still not an anagram.

That's an acronym, WaltP. DNA, RNA, Nasa, etc., are all acronyms.

An anagram has to have every letter of the word or phrase it can be rearranged to form.

commented: Duh! Notice my smiley? -4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.