Module Union_Find_Lattice.LabeledValued

Labeled union-find with values attached to each class.

Array based labeled union-find lattice with values. Warning: this one is NOT persistent, and requires explicit calls to copy on version switch.

Patricia Tree based labeled union-find lattice with values.

Persistent array based labeled union-find lattice with values.

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