A trie implementation in Delphi?
Asked Answered
T

2

6

Anyone knows a ready-to-use trie [sic] implementation in Delphi? An optimized trie would be even better.

Thanks in advance!

Tic answered 5/11, 2011 at 19:3 Comment(5)
Do you mean tree instead of trie? Parent and Child relations? Any specific about the tree? What would you like to be optimized? You mean you want to be balanced?Marsupial
@LarsTruijens: I suspect the OP really does mean a trie.Wrinkle
Trie or prefix tree: en.wikipedia.org/wiki/TrieMarsupial
See COSMIN's Answer here; #5297557Fecteau
@LarsTruijens, I really meant "trie". Basic Trie implementations take much more memory than hashtables, but there are scopes of optimization to solve this issue. Here's a JavaScript example: ejohn.org/blog/javascript-trie-performance-analysisTic
T
1

So far this seems to be the only choice. Good thing is it is generic.

Compact Generic Trie Dictionary

Tic answered 7/11, 2011 at 23:26 Comment(0)
V
1

Try this one from softcomplete. Download link is at the bottom.

Haven't got any experience with it, just found it on Google when searching for Delphi "Trie". The quotes were needed, or else Google is so smart to change it to 'try', which is probably why you didn't find it yourself in the first place. Free tip. :)

Verbal answered 5/11, 2011 at 19:21 Comment(0)
T
1

So far this seems to be the only choice. Good thing is it is generic.

Compact Generic Trie Dictionary

Tic answered 7/11, 2011 at 23:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.