Common.BktreeThis module provides a simple implementation of a BK-tree data structure for storing strings and finding the nearest neighbor to a query string.
val create : string list -> string bk_treecreate values creates a new BK-tree from a list of values.
add distance_fn tree value adds an element to the BK-tree.
val nearest_neighbor : ('a -> 'b -> int) -> 'a bk_tree -> 'b -> 'a * intnearest_neighbor ?distance_fn tree query finds the nearest neighbor in the BK-tree.