# Union-Find，并查集

## 这组问题的分类上基本延续了九章高级算法班的大纲，加了些听课时候的笔记，和自己之后查资料的思考。

## 刚转专业跟公开课的时候，第一讲就是 Robert Sedgewick 大爷的并查集，当时还很天真的觉得这是个入门知识。。。 后来题做多了觉得这类问题掌握技巧之后确实也不难，大爷诚不我欺。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mnunknown.gitbook.io/algorithm-notes/union-findff0c_bing_cha_ji.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
