Skip to content

49 add union find data structure#62

Open
c-m-elliott wants to merge 56 commits into
mainfrom
49-add-union-find-data-structure
Open

49 add union find data structure#62
c-m-elliott wants to merge 56 commits into
mainfrom
49-add-union-find-data-structure

Conversation

@c-m-elliott

Copy link
Copy Markdown

So far, this includes the interfaces UnionFind, SortedUnionFind, PersistentUnionFind and PersistentSortedUnionFind as well as the abstract classes AbstractImmutableUnionFind and AbstractImmutableSortedUnionFind. It also contains a naive implementation of SortedUnionFind based on a HashMap of TreeSets (SortedTreeSetUnionFind). There is a set of tests (SortedUnionFindTest), but there seems to be some kind of problem regarding null values which is causing the JDK21 PackageSanityTest to fail. This in particular is something I'd appreciate input on. Thanks!

Colleen added 30 commits May 25, 2026 13:52
… mismatches that will be sorted out later on if I decide to stick with HashMaps
…) as static method problematic due to variable type
Colleen added 23 commits June 17, 2026 17:16
…est for now as it does not meet codestyle requirements and a quick fix is not available at the moment
…ortedUnionFindTest to ensure the canonical elements of subsets do not change at times they shouldn't (during union by size)
…ical element in UnionFind and SortedUnionFind
… entirely sure what I did though so someone qualified will need to look it over
@c-m-elliott c-m-elliott requested a review from baierd June 25, 2026 14:57
@c-m-elliott c-m-elliott self-assigned this Jun 25, 2026
@c-m-elliott c-m-elliott linked an issue Jun 25, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add Union-Find Data-Structure

1 participant