Used in a Sentence

trie

Definitions, parts of speech, synonyms, and sentence examples for trie.

Editorial note

The problem is that a trie is a very cache-loose data structure.

Examples17
Definitions2
Parts of speech2

Quick take

(computer science) An ordered tree data structure that is used to store an associative array where the keys are usually strings.

Meaning at a glance

The clearest senses and uses of trie gathered in one view.

noun

(computer science) An ordered tree data structure that is used to store an associative array where the keys are usually strings.

verb

Obsolete spelling of try. [To attempt; to endeavour. Followed by infinitive.]

Definitions

Core meanings and parts of speech for trie.

noun

(computer science) An ordered tree data structure that is used to store an associative array where the keys are usually strings.

verb

Obsolete spelling of try. [To attempt; to endeavour. Followed by infinitive.]

Example sentences

1

The problem is that a trie is a very cache-loose data structure.

2

The database is doing row caching, though, and isn't going to be caching lower levels of the trie in close proximity to the higher ones.

3

The gold standard for a trie is probably the Judy array[1], which I've heard has some patents on it, but I can't confirm.

4

The result was that it was much more space-efficient than the trie implementation from TFA (only slightly larger than the hash table), but about 1.8x slower than the trie implementation.

5

By the time you hash a key, you could have likely already inserted it into a trie.

6

It seems you'd get more mileage out of a trie if you also compared it with a sort of zipper approach.

7

My intuition is that a Radix tree trie would make a lot more sense and is more maintainable than such a hack.

8

Any problem where there's a lot of suffix/prefix reusage benefits from a proper trie implementation (or suffix array/tree as alternative) - ex.

9

If you are using the data in order, the trie may be faster because the next entry will likely already be cached.

10

Nope I didn't - I did this work in 2006, and the HAT trie didn't come out until 2007.

11

Skip lists for a suitable sized prefix would likely be more space efficient than a trie, but some trie types such as radix-trees [3] with a sufficiently high radix value, could also be quite efficient.

12

I think the biggest problem with this trie implementation is the amount of pointer-chasing due to the low branching factor.

Quote examples

1

Depending on how you order the trie, you can only get the first k completions by lexicographic ordering, which could be very far from the "best" completions.

2

The idea being that if I type "a", I should just focus the trie around "A".

3

It's a quirk of analysis that a hash table is allowed to take the modulo (for example) of an arbitrarily large number, producing an arbitrarily large number, in "constant time", while a trie is not allowed to descend to an arbitrary depth in constant time.

4

And even if you did just care about "in practice" limitations, you're stuck with the problem of the hash computation taking longer than any realizable trie lookup would (as another poster mentioned is common), meaning that the O(1) claim misrepresents performance relative to another data structure.

Proper noun examples

1

Trie) that contains every Wikipedia title and the byte-offset within the wiki.xml where the title was found.

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use trie in a sentence?

The problem is that a trie is a very cache-loose data structure.

What does trie mean?

(computer science) An ordered tree data structure that is used to store an associative array where the keys are usually strings.

What part of speech is trie?

trie is commonly used as noun, verb.