Об алгоритме перечисления остовов связного графа

Попов Владимир Валентинович · CyberLeninK (CyberLeninka) · 2015

Let ?? = (??,??) be a finite connected graph without multiple edges or loops. We consider the task about the numbering of all the spanning trees of ??. In [2, p. 180, p. 191] described a method of solution of this task, based on the properties of minors of an incidence matrix of ??. In the same place (p. 191-193) gave algorithm of four Japanese mathematicians (Kasahara Y., Tezuka K., Ling Shun Tong, Kitahashi T., [6]), reduced the task to removal of brackets in the product of formal sums of edges of ??. Here we concider the method based on lexicographical order on the set of all sequences of edges of ??. We will remind that a spanning tree ?? of the graph ?? is a tree consisting of edges of ?? and connecting all the vertices of ??. We shall assume that ?? = {1, 2,..., ??}, where ?? is a number of vertices of ??. If ??, ?? ? ??, then (??, ??) will be designated the edge with end-points ?? and ??. Let ?? be a spanning in ??. Then the set of his edges can be written in the form (??1, ??1), (??2, ??2),..., (?????1, ?????1), (??) where ???? < ????+1 or ???? = ????+1 and ???? < ????+1, where ?? = 1, 2,..., ?? ? 2. (??) On a set of sequences of in the form of (??) with the additional condition (B) we will consider a lexicographic order. The smallest (with respect to this order) spanning tree will be the tree ??0 with edges (1, 2), (1, 3), (1, 4),..., (1, ??) provided (1, ??) ? ?? for ?? = 2, 3,..., ??. The greatest spanning tree ??1 will be (1, ??), (2, ??), (3, ??),..., (?? ? 1, ??) under a similar condition. Touching all sequences of a look (A) in ascending order between ??0 and ??1 and checking lack of cycles at the corresponding sets of edges, we will be able to get a list of all spanning trees. We will give results of work of the appropriate computer program. Example 1. For complite graph ???? on ?? vertices for ?? ? 9 the lists of all the spanning trees are obtained. Due to Kely theorem ???? has ?????2 spanning trees. For ?? = 9 thos number is equal 4 782 969. Example 2. Let ?? be a graph on 12 vertices in figure 1 (in the left). Then ?? has 2 415 spanning trees. Let ?? be a finite set of points in the plane ??2. Then ?? = (??,??) is a plane geometrical graph on top of ??, if ?? ? ??2 and egdes of ?? are stright-line segments with the end-points in ?? and two edges of ?? intersects only in points of ?? [3]. If ?? is a tree and ?? = ??, then ?? called a spanning tree on top of ??. Example 3. Let ?? be a set of square tops, and also its center. Then there are 45 spanning trees on top of ??. Example 4. Let ?? consists of square tops, and also middle of its parties. Then there are 3 273 spanning trees on top of ??. Example 7. We will consider a set ?? = ????,?? consisting of ?? ·?? points on the plane: ????,?? = {(??, ??) : ?? = 1, 2,..., ??,. = 1, 2,...,??}, where ??,?? ? ????1 are integers. Thus, ????,?? is a uniform lattice which points lie on ?? horizontal straight lines and for ?? vertical straight lines. The numbers ????(??) of a spanning trees on top of this lattice for small ?? and ?? it is specified in the following table: ?? 2 2 2 2 2 3 3 ?? 2 3 4 5 6 3 4 ????(??) 12 169 2 665 44 329 759 114 24 965 4 595 581 At transfer the spanning trees it is possible to carry out a filtration. For example, it is possible to keep only those trees in the final list, which degrees of vertices not exceeded some number ??. So, the complete graph on 8 vertices has 86 = 262 144 spanning trees. Among them 201 600 spanning trees which degree of vertices don't exceed 3, and 20 160 spanning trees with degree of vertices ? 2. Some modification of the main algorihm allows to receive the list of all crossing-free geometrical graph on top of ?? [3]. For example, if ?? consists of square tops, and also middle of its parties, the number of such a graph on top of ?? is equal to 21 795 (this number included also the empty graph). If to add to ?? the center of a square, this number will become to 167 570. In work is considered also a task about creation of all triangulations of a finite set ?? ? ??2. The algorithm of the solution of this task is available in [3]. The alternative description of algorithm of search is provided in this work. Example 9. Let ?? = ????,?? be a uniform lattice on the plane (see example 7). Then the number ????(??) of triangulations of ????,?? for small ?? and ?? is specified in the following table: ?? 2 2 2 3 3 4 ?? 2 3 8 6 7 5 ????(??) 2 6 3 432 182 132 2 801 708 2 822 648

Cited by 0 works.

Authors