Module Union_Find_Lattice.Valued

Valued union-find: these attach an optional Sig.VALUE to each equivalence class, with values forming a lattice.

Reference implementation: this implements union-find (with values) as a mutable array. Warning: it is NOT persistent, but provides a copy function

Patricia-tree based union-find lattice with attached values.

Persistent-array based union-find lattice with attached values

Persistent-array based union-find lattice with attached values. Same as PersistentArray, but builds join on the nearest common ancestor instead of on one of the arguments.