Indexing
Hashing your keys…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Indexing
Hashing your keys…
One character per node and exactly three children. Lower and higher compare the same position; only the equal child advances — a BST and a trie meeting in the middle.
Click Play to begin
O(log n + m)O(log n + m)O(n)3m = key length, n = total characters stored
Question 1 of 3
What do the three children of a ternary search tree node mean?