1. Trang chủ
  2. » Giáo Dục - Đào Tạo

GRAPH THEORY - PART 2 pptx

14 117 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

2 Connectivity of Graphs 2.1 Bipartite graphs and trees In problems such as the shortest path problem we look for minimum solutions that satisfy the given requirements. The solutions in these cases are usually subgraphs without cycles. Such connected graphs will be called trees, and they are used, e.g., in search algorithms for databases. For concrete applications in this respect, see T.H. CORMEN, C.E. LEISERSON AND R.L. RIVEST, “Introduction to Algorithms”, MIT Press, 1993. Certain structures with operations are representable as trees. These trees are sometimes called construction trees, de- composition trees, factorization trees or grammatical trees. Grammatical trees occur especially in linguistics, where syn- tactic structures of sentences are analyzed. On the right there is a tree of operations for the arithmetic formula . Bipartite graphs DEFINITION. A graph is called bipartite, if has a partition to two subsets and such that each edge connects a vertex of and a vertex of . In this case, is a bipartition of , and is -bipartite. A bipartite graph (as in the above) is a complete - bipartite graph, if , , and for all and . All complete -bipartite graphs are isomorphic. Let denote such a graph. A subset is stable, if is a discrete graph. The following result is clear from the definitions. Theorem 2.1. A graph is bipartite if and only if has a partition to two stable subsets. Example 2.1. The -cube of Example 1.5 is bipartite for all . Indeed, consider has an even number of s and has an odd number of s Clearly, these sets partition , and they are stable in . 2.1 Bipartite graphs and trees 17 Theorem 2.2. A graph is bipartite if and only if it has no odd cycles. Proof. ( ) Let be -bipartite. For a cycle of length , implies , , . , , . Consequently, is odd, and is even. ( ) Suppose that all cycles in are even. First, we observe that it suffices to show the claim for connected graphs. Indeed, if is disconnected, then each cycle of is contained in one of the connected components, , of . If is -bipartite, then is a bipartition of . Assume thus that is connected. Let be a chosen vertex, and define is even is odd Since is connected, . Also, by the definition of distance, . Let be both in or both in , and let and be (among the) shortest paths from to and . Assume that is the last common vertex of and : , , where and are independent. Since and are shortest paths, and are shortest paths . Consequently, . So and have the same parity. Therefore is an even path. It follows that and are not adjacent in , since otherwise would be an odd cycle. Therefore and are discrete induced subgraphs, and is bipartite as claimed. Checking whether a graph is bipartite is easy. In- deed, this can be done by using two ‘opposite’ colours, say and . Start from any vertex , and colour it by . Then colour the neighbours of by , and proceed by colouring all neighbours of an al- ready coloured vertex by an opposite colour. If the whole graph can be coloured, then is -bipartite, where consists of those vertices with colour , and of those vertices with colour ; otherwise, at some point one of the vertices gets both colours, and in this case, is not bipartite. Theorem 2.3 (ERDÖS (1965)). Each graph has a bipartite subgraph such that . Proof. Let be a partition such that the number of edges between and is as large as possible. Denote 2.1 Bipartite graphs and trees 18 and let . Obviously is a spanning subgraph, and it is bipartite. By the maximum condition, since, otherwise, is on the wrong side. (That is, if , then the pair , does better that the pair .) Now Bridges DEFINITION. An edge is a bridge of the graph , if has more connected components than , that is, if . In particular, and most importantly, an edge in a connected is a bridge if and only if is disconnected. On the right the two horizontal lines are bridges. The rest are not. Theorem 2.4. An edge is a bridge if and only if is not in any cycle of . Proof. First of all, note that is a bridge if and only if and belong to different connected components of . ( ) If there is a cycle in containing , then there is a cycle , where is a path in , and so is not a bridge. ( ) Assume that is not a bridge. Hence and are in the same connected com- ponent of . If is a path in , then is a cycle in that contains . Lemma 2.1. Let be a bridge in a connected graph . (i) Then . (ii) Let be a connected component of . If is a bridge of , then is a bridge of . Proof. For (i), let . Since is a bridge, the ends and are not connected in . Let . Since is connected, there exists a path in . This is a path of , unless contains , in which case the part is a path in . For (ii), if belongs to a cycle of , then does not contain (since is in no cycle), and therefore is inside , and is not a bridge of . 2.1 Bipartite graphs and trees 19 Trees DEFINITION. A graph is called acyclic, if it has no cycles. An acyclic graph is also called a forest. A tree is a connected acyclic graph. By Theorem 2.4 and the definition of a tree, we have Corollary 2.1. A connected graph is a tree if and only if all its edges are bridges. Example 2.2. The following enumeration result for trees has many different proofs, the first of which was given by CAYLEY in 1889: There are trees on a vertex set of elements. We omit the proof. On the other hand, there are only a few trees up to isomorphism: trees trees The nonisomorphic trees of order are: Theorem 2.5. The following are equivalent for a graph . (i) is a tree. (ii) Any two vertices are connected in by a unique path. (iii) is acyclic and . Proof. Let . If , then the claim is trivial. Suppose thus that . (i) (ii) Let be a tree. Assume the claim does not hold, and let be two different paths between the same vertices and . Suppose that . Since , there exists an edge which belongs to but not to . Each edge of is a bridge, and therefore and belong to different connected components of . Hence must also belong to ; a contradiction. (ii) (iii) We prove the claim by induction on . Clearly, the claim holds for , and suppose it holds for graphs of order less than . Let be any graph of order satisfying (ii). In particular, is connected, and it is clearly acyclic. Let be a maximal path in , that is, there are no edges , for which or is a path. Such paths exist, because is finite. It follows that , since, by maximality, 2.1 Bipartite graphs and trees 20 if , then belongs to ; otherwise would be a longer path. In this case, , where is the unique edge having an end . The subgraph is connected, and therefore it satisfies the condition (ii). By induction hypothesis, , and so , and the claim follows. (iii) (i) Assume (iii) holds for . We need to show that is connected. Indeed, let the connected components of be , for . Since is acyclic, so are the connected graphs , and hence they are trees, for which we have proved that . Now, , and . Therefore, which gives that , that is, is connected. Example 2.3. Consider a cup tournament of teams. If during a round there are teams left in the tournament, then these are divided into pairs, and from each pair only the winner continues. If is odd, then one of the teams goes to the next round without having to play. How many plays are needed to determine the winner? So if there are teams, after the first round teams continue, and after the second round teams continue, then . So plays are needed in this example. The answer to our problem is , since the cup tournament is a tree, where a play corresponds to an edge of the tree. Spanning trees Theorem 2.6. Each connected graph has a spanning tree, that is, a spanning graph that is a tree. Proof. Let be a minimal connected spanning subgraph, that is, a connected spanning subgraph of such that is disconnected for all . Such a subgraph is obtained from by removing nonbridges: To start with, let . For , let , where is a not a bridge of . Since is not a bridge, is a connected spanning subgraph of and thus of . , when only bridges are left. By Corollary 2.1, is a tree. Corollary 2.2. For each connected graph , . Moreover, a connected graph is a tree if and only if . Proof. Let be a spanning tree of . Then . The second claim is also clear. 2.1 Bipartite graphs and trees 21 Corollary 2.3. Each tree with has at least two leaves. Proof. Let be the number of leaves of . By Corollary 2.2 and the handshaking lemma, from which it follows that , as required. Example 2.4. In Shannon’s switching game a positive player and a negative player play on a graph with two special vertices: a source and a sink . and alternate turns so that designates an edge by , and by . Each edge can be designated at most once. It is ’s purpose to designate a path (that is, to designate all edges in one such path), and tries to block all paths (that is, to designate at least one edge in each such path). We say that a game is positive, if has a winning strategy no matter who begins the game, negative, if has a winning strategy no matter who begins the game, neutral, if the winner depends on who begins the game. The game on the right is neutral. LEHMAN proved in 1964 that Shannon’s switching game is positive if and only if there exists such that contains and and has two spanning trees with no edges in common. In the other direction the claim can be proved along the following lines. Assume that there exists a subgraph containing and and that has two spanning trees with no edges in common. Then plays as follows. If marks by an edge from one of the two trees, then marks by an edge in the other tree such that this edge reconnects the broken tree. In this way, always has two spanning trees for the subgraph with only edges marked by in common. In converse the claim is considerably more difficult to prove. There remains the problem to characterize those Shannon’s switching games that are neutral (negative, respectively). The connector problem To build a network connecting nodes (towns, computers, chips in a computer) it is desirable to decrease the cost of construction of the links to the minimum. This is the connector prob- lem. In graph theoretical terms we wish to find an optimal spanning subgraph of a weighted 2.1 Bipartite graphs and trees 22 graph. Such an optimal subgraph is clearly a spanning tree, for, otherwise a deletion of any nonbridge will reduce the total weight of the subgraph. Let then be a graph together with a weight function (positive reals) on the edges. Kruskal’s algorithm (also known as the greedy algorithm) provides a solution to the connector problem. Kruskal’s algorithm: For a connected and weighted graph of order : (i) Let be an edge of smallest weight, and set . (ii) For each in this order, choose an edge of smallest possible weight such that does not produce a cycle when added to , and let . The final outcome is . By the construction, is a spanning tree of , because it contains no cycles, it is connected and has edges. We now show that has the minimum total weight among the spanning trees of . Suppose is any spanning tree of . Let be the first edge produced by the algorithm that is not in . If we add to , then a cycle containing is created. Also, must contain an edge that is not in . When we replace by in , we still have a spanning tree, say . However, by the construction, , and therefore . Note that has more edges in common with than . Repeating the above procedure, we can transform to by replacing edges, one by one, such that the total weight does not increase. We deduce that . The outcome of Kruskal’s algorithm need not be unique. Indeed, there may exist several optimal spanning trees (with the same weight, of course) for a graph. Example 2.5. When applied to the weighted graph on the right, the algorithm produces the sequence: , , , and . The total weight of the spanning tree is thus 9. Also, the selection , , , , gives another optimal solution (of weight 9). Problem. Consider trees with weight functions . Each tree of order has exactly paths. (Why is this so?) Does there exist a weighted tree of order such that the (total) weights of its paths are ? 2.1 Bipartite graphs and trees 23 In such a weighted tree different paths have differ- ent weights, and each is a weight of one path. Also, must be injective. No solutions are known for any . TAYLOR (1977) proved: if of order exists, then necessarily or for some . Example 2.6. A computer network can be presented as a graph , where the vertices are the node computers, and the edges indicate the direct links. Each computer has an address , a bit string (of zeros and ones). The length of an address is the number of its bits. A message that is sent to is preceded by the address . The Hamming distance of two addresses of the same length is the number of places, where and differ. For example, and . It would be a good way to address the vertices so that the Hamming distance of two vertices is the same as their distance in . In particular, if two vertices were adjacent, their addresses should differ by one symbol. This would make it easier for a node computer to forward a message. A graph is said to be addressable, if it has an addressing such that . We prove that every tree is addressable. Moreover, the addresses of the vertices of can be chosen to be of length . The proof goes by induction. If , then the claim is obvious. In the case , the addresses of the vertices are simply 0 and 1. Let then , and assume that (a leaf) and . By the induction hypothesis, we can address the tree by addresses of length . We change this addressing: let be the address of in , and change it to . Set the address of to . It is now easy to see that we have obtained an addressing for as required. The triangle is not addressable. In order to gain more generality, we modify the address- ing for general graphs by introducing a special symbol in addition to 0 and 1. A star address will be a sequence of these three symbols. The Hamming distance remains as it was, that is, is the number of places, where and have a different symbol 0 or 1. The special symbol does not affect . So, and . We still want to have . 2.2 Connectivity 24 We star address this graph as follows: , , , . These addresses have length 4. Can you design a star addressing with addresses of length 3? WINKLER proved in 1983 a rather unexpected result: The minimum star address length of a graph is at most . For the proof of this, see VAN LINT AND WILSON, “A Course in Combinatorics”. 2.2 Connectivity Spanning trees are often optimal solutions to problems, where cost is the criterion. We may also wish to construct graphs that are as simple as possible, but where two vertices are always connected by at least two independent paths. These problems occur especially in different aspects of fault tolerance and reliability of networks, where one has to make sure that a break- down of one connection does not affect the functionality of the network. Similarly, in a reliable network we require that a break-down of a node (computer) should not result in the inactivity of the whole network. Separating sets DEFINITION. A vertex is a cut vertex, if . A subset is a separating set, if is disconnected. We also say that sep- arates vertices and , if and belong to different connected components of . If is connected, then is a cut vertex if and only if is disconnected, that is, is a separating set. We remark also that if separates and , then every path visits a vertex of . Lemma 2.2. If a connected graph has no separating sets, then it is a complete graph. Proof. If , then the claim is clear. For , assume that is not complete, and let . Now is a separating set. The claim follows from this. DEFINITION. The (vertex) connectivity number of is defined as disconnected or trivial A graph is -connected, if . 2.2 Connectivity 25 In other words, , if is disconnected, , if is a complete graph, and otherwise equals the minimum size of a separating set of . Clearly, if is connected, then it is 1-connected. DEFINITION. An edge cut of consists of edges so that is disconnected. Let disconnected For trivial graphs, let . A graph is -edge connected, if . A minimal edge cut is a bond ( is not an edge cut for any ). Example 2.7. Again, if is disconnected, then . On the right, and . Notice that the minimum degree is . Lemma 2.3. Let be connected. If is a bridge, then either or one of or is a cut vertex. Proof. Assume that and thus that , since is connected. Let and be the connected components of containing and . Now, either (and is a cut vertex) or (and is a cut vertex). Lemma 2.4. If be a bond of a connected graph , then . Proof. Since is disconnected, and is minimal, the subgraph is connected for each . Hence is a bridge in . By Lemma 2.1, has exactly two connected components. Theorem 2.7 (WHITNEY (1932)). For any graph , Proof. Assume is nontrivial. Clearly, , since if we remove all edges with an end , we disconnect . If , then is disconnected, and in this case also . If , then is connected and contains a bridge. By Lemma 2.3, either or has a cut vertex. In both of these cases, also . Assume then that . Let be an edge cut of with , and let . Then is a bond, and has two connected components. [...]... ẵắ 2. 2 Connectivity 29 Diracs fans ậ ẻ ậ and such that ắ in D EFINITION Let ắ a graph A set of paths from to a vertex in is called a -fan, if they have only in common ậà ậ Theorem 2. 11 (D IRAC (1960)) A graph is -connected if and for every ắ and with and only if and ắ , there exists a -fan of paths ậ ậà ậ ậ ẻ Ê Ê Ê ậ ỉ Proof Exercise ắ Then for any Theorem 2. 12 (D IRAC (1960)) Let be a -connected... a graph A -disconnecting set is a set contains an edge from path Theorem 2. 10 Let disjoint paths such that every ắ with in a graph Then the maximum number of edge equals the minimum number of edges in a -disconnecting set Corollary 2. 4 A graph is -edge connected if and only if every two vertices are connected by at least edge disjoint paths ẫ ẫ à from Example 1.5 We show that Example 2. 8... converse, suppose that , but that has vertices and connected by at ắ Consider the most independent paths By Theorem 2. 8, it must be that graph Now and are connected by at most independent paths in , and by ẵ à ắ 2. 2 Connectivity 28 à ậ ậ à ậ ậ ậ ắ à ậ Theorem 2. 8, and can be separated in by a set with Since (because ), there exists a ắ that is not in The vertex is separated... smaller graph the set ề is a minimum set that separates and , and so the induction hypothesis yields that there are independent paths in Together with the path , there are independent paths in as required ặ ậ ặ à ặ à (2) Assume then that Ê ậ the connected components of à ậ ậ , and denote by for and (2. 1) Suppose next that ậ ả ặ à and ậ ả ặ à ặ Ê ậ à and 2. 2 Connectivity 27 ậ... to , since the path is shortest and so ắ (meaning that is not adjacent to all of í ) The assumption (2) yields that is adjacent to all of ĩ , since ắ But now both and are adjacent to the vertices of ẳ, which ỉ contradicts the assumption (2) ậ ậ ĩ ẩ í ậ Theorem 2. 9 (M ENGER (1 927 )) A graph is -connected if and only if every two vertices are connected by at least independent paths à Proof If... vertex of (since , and therefore is an induced subgraph of ) In both of these cases, there is a vertex of , whose removal ẳ , and the results in a trivial or a disconnected graph In conclusion, ỉ claim follows ậ ậ ậ ậ à ậ ậ ậ ậ à ậ ậ à ẵ ậ ậ ậ ậ ãẵ à Mengers theorem ắ be nonadjacent vertices of a connected graph Theorem 2. 8 (M ENGER (1 927 )) Let Then the minimum number of vertices separating.. .2. 2 Connectivity 26 Consider the connected subgraph ề à àã where is a bridge ẵ à ẵ Now for each ắ ề choose an end different from and (The choices for different edges need not be different.) Note that since... symmetric argument applies to the graph (with a new vertex ) , which is dened similarly to This yields that there are paths that have only the end in common When we combine , we obtain independent paths in these with the above paths (2. 2) There remains the case, where for all separating sets ậ of elements, either ậ ặ à or ậ ặ à (Note that then, by (2) , ậ ặ à or ậ ặ à ) ẫ be a shortest... Example 2. 9 We have ẳ Since à ặ à ẳ ẫ ẫ à ậ à ẳ ẫ ẳ ẵà ậ ẫ ậ ẵ ậ ậ ậ ẵ ẫ ậ ậ for the -cube Indeed, by Whitneys theorem, ặẫ à, also ẳ ẫ à à Algorithmic Problem The connectivity problems tend to be algorithmically difcult In the disjoint paths problem we are given a set of pairs of vertices for , that have no vertices in common This and it is asked whether there exist paths problem was shown to be NP-complete... Connectivity 27 ậ Let be a new vertex, and dene to be the graph on having the edges of together with for all ắ The graph is connected and it is smaller than Indeed, in order for to be a minimum separating ắ ắ have to be adjacent to some vertex in set, all This shows that , and, moreover, the assumption ẵ , and therefore (2. 1) rules out the case and so in the present case ẳ is any . of , and is -bipartite. A bipartite graph (as in the above) is a complete - bipartite graph, if , , and for all and . All complete -bipartite graphs are isomorphic. Let denote such a graph. A subset is. Clearly, these sets partition , and they are stable in . 2. 1 Bipartite graphs and trees 17 Theorem 2. 2. A graph is bipartite if and only if it has no odd cycles. Proof. ( ) Let be -bipartite. For a. is the connector prob- lem. In graph theoretical terms we wish to find an optimal spanning subgraph of a weighted 2. 1 Bipartite graphs and trees 22 graph. Such an optimal subgraph is clearly a spanning

Ngày đăng: 13/08/2014, 13:21

TỪ KHÓA LIÊN QUAN