package acgtk
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=2743321ae4cc97400856eb503a876cbcbd08435ebc750276399a97481d001d41
md5=04c1e14f98e2c8fd966ef7ef30b38323
doc/acgtkLib.datalogLib/DatalogLib/UnionFind/index.html
Module DatalogLib.UnionFind
Source
Modules with this module type should provide Union-Find algorithms and the indexed storage data structure. Note that we take the opportunity of implementing from scratch such algorithms to allow the find
function returns not only the index of the representative and the values it indexes, but also the storage data structure, so that the find
algorithm can modify it, in particular with path compression.
Modules with this module type should provide an indexed (by int
indexes) storage data structure for 'a
type values and access and update functions.
This (functor) module implements a UnionFind
data structure. The S
parameter is used to try different implementations of indexed data structure, in particular eventually persistent arrays as described in "A Persistent Union-Find Data Structure" (Sylvain Conchon and Jean-Chrisophe Filliâtre