并查集 专题总结
一.题目类型:
1.普通并查集:
Codeforces Round #363 (Div. 2) D. Fix a Tree
Codeforces Round #376 (Div. 2) C. Socks
2.种类并查集:
HDU3038 How Many Answers Are Wrong
3.反向并查集:
ZOJ3261 Connections in Galaxy War
4.路径压缩:
一.题目类型:
1.普通并查集:
Codeforces Round #363 (Div. 2) D. Fix a Tree
Codeforces Round #376 (Div. 2) C. Socks
2.种类并查集:
HDU3038 How Many Answers Are Wrong
3.反向并查集:
ZOJ3261 Connections in Galaxy War
4.路径压缩: