logo
首页技术栈工具库讨论
disjoint-set

disjoint-set

This is a persistent data structure for disjoint sets. The algorithm is described in Introduction to Algorithms by Cormen, et al. The implementation here uses both union by rank and path compression. We incur an O(logn) overhead because of the use of persistent maps. Data.IntDisjointSet is as strict as possible.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install disjoint-set
查看
标签
根据用户添加的标签生成
暂无标签