Solutions for Session 7

Trees

Efficiently searching sorted lists

In the solutions we use the predicate gt/2 for the greater than relation: gt(X,Y):- X > Y.

Binary dictionaries

Balanced binary dictionaries