An interesting article about REST
How to GET a Cup of Coffee
Memory Leaks
Ongoing thoughts about programming and software development related topics.
Monday, August 20, 2012
Friday, February 10, 2012
Trie: Second Implementation in Groovy
This is another version of Trie implementation in my previous post. The new one comes with a flag to identify a complete word.
Labels:
Algorithm,
Data Structure,
Groovy,
Java,
Prefix,
Prefix Tree,
Trie,
Trie Tree
Groovy : Trie Implementation
From Wikipedia:
In computer science, a trie, or prefix tree, is an ordered tree data structure that is used to store an associative array where the keys are usually strings. Unlike a binary search tree, no node in the tree stores the key associated with that node; instead, its position in the tree defines the key it is associated with. All the descendants of a node have a common prefix of the string associated with that node, and the root is associated with the empty string. Values are normally not associated with every node, only with leaves and some inner nodes that correspond to keys of interest.
In computer science, a trie, or prefix tree, is an ordered tree data structure that is used to store an associative array where the keys are usually strings. Unlike a binary search tree, no node in the tree stores the key associated with that node; instead, its position in the tree defines the key it is associated with. All the descendants of a node have a common prefix of the string associated with that node, and the root is associated with the empty string. Values are normally not associated with every node, only with leaves and some inner nodes that correspond to keys of interest.
Labels:
Algorithm,
Data Structure,
Groovy,
Java,
Trie
Subscribe to:
Posts (Atom)