disjoint_set 1.0.0 copy "disjoint_set: ^1.0.0" to clipboard
disjoint_set: ^1.0.0 copied to clipboard

A highly efficient implementation of the Disjoint Set (Union-Find) data structure with union by rank and path compression optimizations.

1.0.0 #

Initial release of the disjoint_set package.

Features #

  • Generic DisjointSet data structure with union-by-rank and path compression
  • O(α(n)) time complexity for operations
  • Comprehensive set management operations
  • Full test coverage
  • Serialization support
  • Custom object support
  • Advanced features (mergeIf, remove)

Implementation Details #

  • Efficient implementation with union-by-rank optimization
  • Path compression for near-constant time operations
  • Complete documentation and examples
  • Null safety support
  • Dart 3.0+ compatibility
2
likes
160
points
13
downloads

Publisher

verified publisherkator.dev

Weekly Downloads

A highly efficient implementation of the Disjoint Set (Union-Find) data structure with union by rank and path compression optimizations.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on disjoint_set