Skip to content

Union-Find ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ •๋ฆฌย #4

Description

@voidmatcha

ํ•ต์‹ฌ ๊ฐœ๋…

  • ๊ฐ ๋…ธ๋“œ์˜ ์ธ๋ฑ์Šค์˜ ๊ฐ’์„ ๋ถ€๋ชจ ๋…ธ๋“œ์˜ ์ธ๋ฑ์Šค๋กœ ์ €์žฅ
  • ์ตœ์ƒ์œ„ ๋…ธ๋“œ์˜ ๊ฒฝ์šฐ ์ž๊ธฐ ์ž์‹ ์˜ ์ธ๋ฑ์Šค๋ฅผ ์ €์žฅ

MST์ธ์ง€๋ฅผ ํŒ๋ณ„ํ•˜๊ฑฐ๋‚˜ ์‚ฌ์ดํด์„ ํŒ๋‹จํ•˜๋Š”๋ฐ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Œ

ํ•ต์‹ฌ ์—ฐ์‚ฐ

  • unionParent: ์„œ๋กœ ๋‹ค๋ฅธ ๋‘ ํŠธ๋ฆฌ๋ฅผ ํ•ฉ์น˜๋Š” ์—ฐ์‚ฐ
  • findParent: ์ตœ์ƒ์œ„ ๋…ธ๋“œ๋ฅผ ์ฐพ๋Š” ์—ฐ์‚ฐ

์‹œ๊ฐ„๋ณต์žก๋„ ๋ฐ ๊ณต๊ฐ„๋ณต์žก๋„ ์ตœ์ ํ™”

WIP
์ฐธ๊ณ  1: https://github.com/im-d-team/Dev-Docs/blob/20210117/Dae-Hwa/CS/union-find.md
์ฐธ๊ณ  2: https://www.notion.so/Union-Find-Disjoint-Set-821e76d39f8f43f7af5763853c7162e7

Union-Find๋ฅผ ์ด์šฉํ•ด ํ’€ ์ˆ˜ ์žˆ๋Š” ๋ฌธ์ œ

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions