trie Questions
4
Solved
I get the concept behind a trie. But I get a little confused when it comes to implementation.
The most obvious way I could think to structure a Trie type would be to have a Trie maintain an intern...
Cheyney asked 8/9, 2010 at 6:59
4
Solved
Assuming that a general Trie of dictionary words is built, what would be the best method to check for the 4 cases of spelling mistakes - substitution, deletion, transposition and insertion during t...
Bravissimo asked 14/7, 2010 at 22:59
4
Solved
Given the following...
(def inTree
'((1 2)
(1 2 3)
(1 2 4 5 9)
(1 2 4 10 15)
(1 2 4 20 25)))
How would you transform it to this trie?
(def outTrie
'(1
(2 ()
(3 ())
(4 (5
(9 ()))
(10
...
Gault asked 21/9, 2009 at 2:51
4
Solved
I am working with a large set (5-20 million) of String keys (average length 10 chars) which I need to store in an in memory data structure that supports the following operation in constant time or ...
Receiver asked 8/2, 2010 at 0:1
5
Solved
I'm using some Java code to do fast prefix lookups, using java.util.TreeSet, could I be using scala's TreeSet instead? Or a different solution?
/** A class that uses a TreeSet to do fast prefix ma...
Kwabena asked 9/12, 2009 at 11:5
3
Solved
I have a problem: I need space-efficient lookup of file-system data based of file path prefix. Prefix searching of sorted text, in other words. Use a trie, you say, and I thought the same thing. Tr...
5
Solved
I don't know if this is the place to ask about algorithms. But let's see if I get any answers ... :)
If anything is unclear I'm very happy to clarify things.
I just implemented a Trie in python. ...
3
I have to implement a homemade Trie and I'm stuck on the Iterator part. I can't seem to figure out the increment method for the trie.
I hope someone can help me clear things out.
Here's the code ...
3
Solved
I have a prefix trie. What is the recommended schema for representing this structure in a relational database? I need substring matching to remain efficient.
Multiple asked 10/12, 2008 at 4:6
8
Solved
So if I have to choose between a hash table or a prefix tree what are the discriminating factors that would lead me to choose one over the other. From my own naive point of view it seems as though ...
Optime asked 29/10, 2008 at 5:19
© 2022 - 2024 — McMap. All rights reserved.