Skip to content

Refactor UnionFind: rename id to parent, use recursive find#1305

Merged
williamfiset merged 1 commit into
masterfrom
refactor-unionfind-rename-id-to-parent
Mar 23, 2026
Merged

Refactor UnionFind: rename id to parent, use recursive find#1305
williamfiset merged 1 commit into
masterfrom
refactor-unionfind-rename-id-to-parent

Conversation

@williamfiset
Copy link
Copy Markdown
Owner

@williamfiset williamfiset commented Mar 23, 2026

Summary

  • Rename the id array to parent for better readability and self-documenting code
  • Replace the iterative find with the recursive path-compression implementation

Test plan

  • Verify existing UnionFind tests pass
  • Confirm no other files reference the old id field

🤖 Generated with Claude Code

Rename the `id` array to `parent` for clarity and switch the
iterative find implementation to the recursive path-compression
variant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@williamfiset williamfiset merged commit f238846 into master Mar 23, 2026
2 checks passed
@williamfiset williamfiset deleted the refactor-unionfind-rename-id-to-parent branch March 23, 2026 03:06
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