Anagrams
An anagram is a word or phrase formed by rearranging the letters of another, using all the original letters exactly once. Classic examples include listen and silent, or the longer pair astronomer and moon starer, which show how the same set of letters can yield different meanings. Anagrams can involve a single word or a multiword phrase, and in many puzzles spaces and punctuation are ignored during the rearrangement.
The word 'anagram' comes from Greek ana- 'again' and grámma 'letter'. Anagrams have appeared in many cultures
Most analyses assume a 'perfect' anagram, where the transformed form uses exactly the same letters with identical
In computation, determining whether two strings are anagrams is a standard problem. Techniques include sorting the