foreachvertex udo |
Assign u uniformly at random with equal probability to set A or set B |
end |
whilethere exists at least one unhappy vertexdo |
Choose v at random from the set of unhappy vertices |
flip (v) |
end |
output bipartition (A, B) |
foreachvertex udo |
Assign u uniformly at random with equal probability to set A or set B |
end |
whilethere exists at least one unhappy vertexdo |
Choose v at random from the set of unhappy vertices |
flip (v) |
end |
output bipartition (A, B) |