Description
A Functional Implementation of the Garsia-Wachs Algorithm.
Description
The Garsia-Wachs algorithm builds a binary tree with minimum weighted path length from weighted leaf nodes given in symmetric order. This can be used to build optimum search tables, to balance a ropes
data structure in an optimal way.