Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UnionFind & RemUnionFind #100

Merged
merged 9 commits into from
Jun 6, 2024

Conversation

byeongkeunahn
Copy link
Collaborator

@byeongkeunahn byeongkeunahn commented Jun 6, 2024

Closes #98

변경 사항 요약:

  • connected_component_count() 메서드를 추가했습니다. 짧은 alias로 cc_count()도 함께 추가했습니다.
  • 크기가 단조증가하도록 assert!를 추가했습니다.
  • 주석을 추가했습니다.

제가 구현한 클래스들이 아니라서 kiwiyou님께서 기능상 문제나 설명 오류 등이 없는지 확인해주시면 좋을 것 같습니다.
Baekjoon Online Judge 7439번에서 정상 작동은 확인했습니다.

UnionFind http://boj.kr/51ebce58157a4e61ac20f795b0653cc6
RemUnionFind http://boj.kr/3475d43b277043df8e4ceba8557d5eff

@byeongkeunahn byeongkeunahn merged commit 8dd3cb2 into boj-rs:main Jun 6, 2024
8 checks passed
@byeongkeunahn byeongkeunahn deleted the improve-union-find branch June 6, 2024 14:36
@byeongkeunahn byeongkeunahn restored the improve-union-find branch June 6, 2024 14:36
@byeongkeunahn byeongkeunahn deleted the improve-union-find branch June 6, 2024 14:36
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.

UnionFind 디자인 개선
2 participants