Anatree
An anatree is a data structure designed to solve anagrams.[src] Solving an anagram is the problem of finding a word from a given list of letters.[src] These problems are commonly encountered in word games like Scrabble or in newspaper crossword puzzles.[src] The problem for the wordwheel also has the condition that the central letter appear in all the words framed with the given set.[src] Some other conditions may be introduced regarding the frequency (number of appearances) of each of the letters in the given input string.[src] These problems are classified as Constraint satisfaction problem in computer science literature.[src] An anatree is represented as a directed tree which contains a set of words (W) encoded as strings in some alphabet.[src] The internal vertices are labelled with some letter in the alphabet and the leaves contain words.[src] The edges are labelled with non-negative integers.[src] An anatree has the property that the sum of the edge labels from the root to the leaf is the length of the word stored at the leaf.[src] If the internal vertices are labelled as \alpha_1 , \alpha_2 ...[src] \alpha_l , and the edge labels are n_1 , n_2 ...[src] n_l , then the path from the root to the leaf along these vertices and edges are a list of words that contain n_1 \alpha_1 s, n_2 \alpha_2 s and so on.[src] Anatrees are intended to be read only data structures with all the words available at construction time.…[src]
An anatree is a data structure designed to solve anagrams.[src] Solving an anagram is the problem of finding a word from a given list of letters.[src] These problems are commonly encountered in word games like Scrabble or in newspaper crossword puzzles.[src] The problem for the wordwheel also has the condition that the central letter appear in all the words framed with the given set.[src] Some other conditions may be introduced regarding the frequency (number of appearances) of each of the letters in the given input string.[src] These problems are classified as Constraint satisfaction problem in computer science literature.[src] An anatree is represented as a directed tree which contains a set of words (W) encoded as strings in some alphabet.[src] The internal vertices are labelled with some letter in the alphabet and the leaves contain words.[src] The edges are labelled with non-negative integers.[src] An anatree has the property that the sum of the edge labels from the root to the leaf is the length of the word stored at the leaf.[src] If the internal vertices are labelled as \alpha_1 , \alpha_2 ...[src] \alpha_l , and the edge labels are n_1 , n_2 ...[src] n_l , then the path from the root to the leaf along these vertices and edges are a list of words that contain n_1 \alpha_1 s, n_2 \alpha_2 s and so on.[src] Anatrees are intended to be read only data structures with all the words available at construction time.[src] A mixed anatree is an anatree where the internal vertices also store words.[src] A mixed anatree can have words of varying lengths, where as in a regular anatree, all words are of the same length.[src] Start labeling vertices based on the relative frequency.[src] A probabilistic approach is used to assign labels to vertices.[src] If W_n^\alpha is the set of words that contain n \alpha s , then we label the vertex with \alpha if it maximizes the expected distance to the leaf.[src] This approach has the most frequently appearing characters (like E) labeled at the root and the least frequently appearing characters labeled at the leaves.[src] The following equation is maximized D_\alpha = \sum_n n \frac .[src] This approach prevents long sequences of zero labeled edges since they do not contribute letters to the words generated by the anatree.[src] ==References== ==External links== Damn Cool Algorithms Part 3 - Anagram Trees Anagram at sourceforge[src]
37 sentences · 37 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Anatree." encyclopegia.org, 2026, https://encyclopegia.org/wiki/anatree. Accessed 05 December 2026.
Chicago
"Anatree." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/anatree.
APA
encyclopegia.org. (2026). Anatree. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/anatree
Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON