Graph partitioning problem Flashcards

1
Q

Describe the graph partitioning problem

A

The graph partitioning problem is a problem in which we have a graph G(V,E), and two sets A and B.

We want to pot the nodes v in V into either A or B such that the edges crossing from A to B is minimized.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

With v in V, what is E(v) = external(v) and I(v) = interal(v)?

A

With some node v, E(v) are the edges crossing from v’s set to the other set.

I(v) are v’s edges connected to other nodes in v’s set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

With some v in V, what is diff(v)?

A

diff(v) = external(v) - internal(v).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you interpret diff(v)?

A

diff(v) is the difference between internal and external edges for some node. It tells us something about how much of an improvement we can expect when moving v to the other set.

Moving v to the other set might improve diff(v). Does it decrease diff(w) for w in V, v =/= w?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you improve this problem?

A

You can exchange pairwise nodes a and b.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you calculate the gain of swapping two nodes?

A

gain(a,b) = diff(a) + diff(b) - 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly