Content
@
0 reply
0 recast
0 reaction
Pete Horne
@horneps
Checking - there’s nothing faster than a binary search is there unless you are also worried about insert time which means back trees right? Ie a slow indexing process that creates a simple ordered list for fast binary search is the most efficient for reads, but not inserts (as you have to re-sort the file each time)?
5 replies
0 recast
160 reactions
Cassie Heart
@cassie
Technically there's faster algorithms, but it's only in use case specific conditions. What are you trying to do?
1 reply
0 recast
44 reactions
Pete Horne
@horneps
An inverted index of stemmed/lemmatized words so I can't use the integer key patterns of a forward index - although I could use prefix patterns now you've reminded me!
1 reply
0 recast
2 reactions
Cassie Heart
@cassie
you could use a radix trie if you're always operating off the prefix, which does bring things back into binary search, or you could opt for a hypergraph embedding of shared segments such that progressing from a root marker you have a radix, or omitting the root you just do a hypergraph search
1 reply
0 recast
0 reaction
Pete Horne
@horneps
Lol. Thanks... now I'm triggered! It's pretty simple to do a 2 char prefix radix trie, then binary search, so I'll do that to start. Search is the simple analytics workflow to get started and demo, so this is very helpful to move me on.
0 reply
0 recast
0 reaction