demo/grid_ugraph_demo.in
author deba
Wed, 06 Sep 2006 11:17:12 +0000
changeset 2205 c20b0eb92a33
permissions -rw-r--r--
UnionFind
Changing the representation of the union-find
it has the same running time but it takes just 2/3 space
! does not auto insert items /performance/

UnionFindEnum
Changing the interface - more convenient to UnionFind
Does not based on the stl data structures /it could be disadvantage/
=> does not use singular iterator assignment /not stl conform, but always work/
Just new iterator interface

MaxMatching + UnionFindTest
Using new iterator interface instead of the old
deba@1979
     1
10 8
deba@1979
     2
1 1 10 8
deba@1979
     3
..X....X.X
deba@1979
     4
.XX.X.XX..
deba@1979
     5
....X..XX.
deba@1979
     6
XXXXXX.X..
deba@1979
     7
.........X
deba@1979
     8
.X.XXXXXXX
deba@1979
     9
.X...XX...
deba@1979
    10
.X.X....X.