An anagram of a finite string is another string with exactly the same number of occurrences of each symbol. Thus and are anagrams; is not. Equivalently, the second string is obtained by a permutation of the positions.
If a length- string has symbol multiplicities , its number of distinct anagrams is the multinomial coefficient . Dividing by the factorials removes position permutations that only exchange equal symbols. The count depends on multiplicities, not the original ordering.

Articles by others on the same topic (0)

There are currently no matching articles.