• Nie Znaleziono Wyników

G. Plebanek M atP rogOpt no 5 May 10, 2021

N/A
N/A
Protected

Academic year: 2021

Share "G. Plebanek M atP rogOpt no 5 May 10, 2021"

Copied!
2
0
0

Pełen tekst

(1)

G. Plebanek M atP rogOpt no 5 May 10, 2021

1. Shannon switching game. The game is played on a connected (undirected) graph in which there is vertex a (=prison) an another one b (=escape). There are two players:

Sheriff and Prisoner. Sheriff starts and marks one edge from the graph, say by −. Then Prisoner marks one of remaining edges, say by +. Then Sheriff marks one of the remaining edges and so on.

At the end all the edges are marked either + or −; Prisoner wins if he can escape, that is there is a path from a to b using + edges. Otherwise, Sheriff wins.

Assume that in a graph contains two spanning trees T (0) and S(0) having disjoint sets of edges. Show that Prisoner has a winning strategy: when one edge gets − then he can replace T (0) and S(0) by two spanning trees having one common edge which is marked +. Continuing in this fashion, at the end he gets a spanning tree marked + so there is an escape.

Above we use the fact that if we incorporate a new edge to some spanning tree then we get a cycle and we can form another spanning tree by removing some old edge. It is a good idea to play first on some small example — one may try to google online implementations of the game.

2. Max flow problem. Note that a problem of finding a max flow in a graph with a number of sources s1, . . . , si and many sinks (=targets) t1, . . . , tj can be reduced to the classical case.

How would you solve the max flow problem in an undirected graph with given capacities of the edges?

3. Matching in bipartite graphs Suppose that we have a graph G = (V, A) where V = S ∪ T and every arc in A is of the form (x, y), where x ∈ S and y ∈ T . A matching in such a graph is an injective function g : D → T where D ⊆ S and (x, f (x)) ∈ A for every x ∈ D. Recall that we want to maximize the size of matching (that is |D|). It was already suggested how to extend G to the graph G (by adding the source and the target and soe on) so that the FF algorithm can be applied.

(a) Note that a feasible flow inG with integer values determines a matching in G.e (b) Note that an augmenting path in G defines the so called alternating chain in G:e

it starts at an unmatched vertex in S, ends at an unmatched vertex in T , goes from S to T using a free arc and comes back using an arc from the matching.

(c) Note that, given some matching, if we find an alternating chain then we can enlarge the matching by one.

(d) Design a labelling algorithm (working entirely in G) which determines if there are alternating chains.

(2)

4. Theorem (K˝onig). In a bipartite graph, the size of a maximal matching equals the minimal number of blocking vertices (B ⊆ V is blocking if every arc either starts in B or ends in it).

Prove the theorem by noting that in the extended graph G (see above) it is just thee duality between flows and capacities of cuts.

5. Hall’s marriage theorem. In a bipartite graph G = (V, A), where G = S ∪ T there is a matching of maximal size |S| if and only if for every I ⊆ S we have |G[I]| ­ |I| (here G[I] = {y ∈ T : (x, y) ∈ A for some x ∈ I}).

Prove the theorem by examining the minimal blocking set and using the previous pro- blem.

Cytaty

Powiązane dokumenty

Wojda in [3] characterized those (p, q)-bipartite graphs of size p+q−2 which are not 2-placeable in K p,q... Proof of

(This doubles the distance between vertices of.. the same color.) The result is an S(a, d)-packing coloring using a finite number of colors.. We can also provide a lower bound on

Ens denotes the category of sets and (all) maps; Compconv denotes the category of compact convex sets (subsets of locally convex Hausdorff spaces) and

In this paper we continue our study of exactly 2-to-1 maps from continua onto arc-continua, without the hypothesis of tree-likeness, and we have found some simple conditions on

For the triangle in Problem 4 compute the length of the altitude through the vertex A.. For the tetrahedron in Problem 7 compute the lenght of the altitude through the

The used ones can be send to the express laundry; it makes them unavailable for n days (the cost is l 1 per item) or to the normal laundry; this makes them unaviable for next m days

Say that the connectivity of G (between s ant t) is the maximal number of directed paths from s to t going through pairwise disjoint sets of vertices.. Say also that the

In a bipartite graph, the size of a maximal matching equals the minimal number of blocking vertices (B ⊆ V is blocking if every arc either starts in B or ends in it). Hall’s