-1

I implemented a trie based search and compared it with binary search. According to me trie based search should be more optimum than binary search when we have huge text files but when i used java's clock function to check the time, results were other way round. Can someone explain me?

Ramesh
  • 167
  • 1
  • 10

1 Answers1

0

With binary string search you need to have sorted list. IMO sorting and searching is more expensive then a trie.

Micromega
  • 12,486
  • 7
  • 35
  • 72