Last time | Next time |
Today:
Turns out you can do it as a binary tree, therefore. But most of you did it as ternary.
With only two comparisons, you can find it. See the key.
Once again on the rather simple algorithmic front, with algorithms for traversing (visiting each node) of a graph.
We might be simply indicating what's stored at each node of the graph, or we may be performing some operation based on those nodes. Whatever we're doing, we want to do it efficiently.