Skip to content

Add disjoint-set data structure#136

Open
Ayilay wants to merge 2 commits intotezc:masterfrom
Ayilay:disjoint_set
Open

Add disjoint-set data structure#136
Ayilay wants to merge 2 commits intotezc:masterfrom
Ayilay:disjoint_set

Conversation

@Ayilay
Copy link

@Ayilay Ayilay commented Dec 12, 2025

Contains README, and Unit Tests using standard asserts.

Contains additional unit tests using Unity (not included). The file unity_test_disjoint.c is ignored by the build system, but serves as reference for additional valid use cases.

Code style is mimicked to the best of my ability to match the other data structures in this collection.

I needed to use a disjoint set for day8 of Advent of Code, which I prefer to do in C. Hope it makes a welcome addition to your collection.

Contains README, and Unit Tests using standard asserts.

Contains additional unit tests using Unity (not included).
The file unity_test_disjoint.c is ignored by the build system,
but serves as reference for additional valid use cases.

Code style is mimiced to the best of my ability to match the
other data structures in this collection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant