Path compression for stable set structure
| 512 | } |
| 513 | /// Path compression for stable set structure |
| 514 | forceinline void |
| 515 | pathset_s(HallInfo hall[], int start, int end, int to) { |
| 516 | int k, l; |
| 517 | for (l=start; (k=l) != end; hall[k].s=to) { |
| 518 | l = hall[k].s; |
| 519 | } |
| 520 | } |
| 521 | /// Path compression for capacity pointer structure |
| 522 | forceinline void |
| 523 | pathset_t(HallInfo hall[], int start, int end, int to) { |