anagrams Algorithm

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically use all the original letters precisely once. The original word or phrase is known as the subject of the anagram. There were attempts to regulate anagram formation, an important one in English being that of George Puttenham's Of the Anagram or Posy transpose in The art of English Poesie (1589).They are say to go back at least to the Greek poet Lycophron, in the third century BCE; but this relies on an account of Lycophron given by John Tzetzes in the 12th century. They were popular throughout Europe during the center age, for example with the poet and composer Guillaume de Machaut.

anagrams source code, pseudocode and analysis