|
spot 2.16
|
This Union-Find data structure is a particular union-find, dedicated for emptiness checks below, see ec.hh. The key of this union-find is int. Moreover, we suppose that only consecutive int are inserted. This union-find includes most of the classical optimizations (IPC, LR, PC, MS). More...
#include <spot/mc/unionfind.hh>
Public Member Functions | |
| int_unionfind () | |
| Default constructor. | |
| void | makeset (int e) |
| Create a new singleton set containing element e. | |
| bool | unite (int e1, int e2) |
| Unite the sets containing e1 and e2; return true if they were different. | |
| void | markdead (int e) |
| Mark element e as dead. | |
| bool | sameset (int e1, int e2) |
| Check if elements are in the same set. | |
| bool | isdead (int e) |
| Check if element is marked as dead. | |
This Union-Find data structure is a particular union-find, dedicated for emptiness checks below, see ec.hh. The key of this union-find is int. Moreover, we suppose that only consecutive int are inserted. This union-find includes most of the classical optimizations (IPC, LR, PC, MS).
| spot::int_unionfind::int_unionfind | ( | ) |
Default constructor.
| bool spot::int_unionfind::isdead | ( | int | e | ) |
Check if element is marked as dead.
| void spot::int_unionfind::makeset | ( | int | e | ) |
Create a new singleton set containing element e.
| void spot::int_unionfind::markdead | ( | int | e | ) |
Mark element e as dead.
| bool spot::int_unionfind::sameset | ( | int | e1, |
| int | e2 | ||
| ) |
Check if elements are in the same set.
| bool spot::int_unionfind::unite | ( | int | e1, |
| int | e2 | ||
| ) |
Unite the sets containing e1 and e2; return true if they were different.
1.9.8