Color theory: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>K6ka
m Reverted edits by 69.114.57.213 (talk): nonconstructive edits (HG)
en>Jack Nastyface
m grammar correction
Line 1: Line 1:
{{For|the protocol used to prevent forwarding loops on a LAN|Spanning Tree Protocol}}
Roberto is what's written concerning his birth certificate yet he never really appreciated that name. South Carolina is michael's birth place. The [http://Www.Sharkbayte.com/keyword/best-loved+hobby best-loved hobby] for him and as well , his kids is to fish and he's been doing it for quite some time. [http://Search.Usa.gov/search?query=Auditing Auditing] is how he supports his own family. Go of his website to find out more: http://circuspartypanama.com<br><br>my homepage; [http://circuspartypanama.com clash of clans hack download no survey no password]
 
[[File:4x4 grid spanning tree.svg|thumb|A spanning tree (blue heavy edges) of a [[grid graph]]]]
In the [[mathematics|mathematical]] field of [[graph theory]], a '''spanning tree''' ''T'' of a [[connected graph|connected]], [[undirected graph]] ''G'' is a [[tree (graph theory)|tree]] that includes all of the [[Vertex (graph theory)|vertices]] and some or all of the [[Edge (graph theory)|edges]] of ''G''.
 
==Definitions==
A tree is a [[connected graph|connected]] [[undirected graph]] with no [[cycle (graph theory)|cycles]]. It is a spanning tree of a graph ''G'' if it spans ''G'' (that is, it includes every vertex of ''G'') and is a subgraph of ''G'' (every edge in the tree belongs to ''G''). A spanning tree of a connected graph ''G'' can also be defined as a maximal set of edges of ''G'' that contains no cycle, or as a minimal set of edges that connect all vertices.
 
===Fundamental cycles===
Adding just one edge to a spanning tree will create a cycle; such a cycle is called a '''fundamental cycle'''. There is a distinct fundamental cycle for each edge; thus, there is a one-to-one correspondence between fundamental cycles and  edges not in the spanning tree.  For a connected graph with ''V'' vertices, any spanning tree will have ''V''&nbsp;&minus;&nbsp;1 edges, and thus, a graph of ''E'' edges and one of its spanning trees will have ''E''&nbsp;&minus;&nbsp;''V''&nbsp;+&nbsp;1 fundamental cycles. For any given spanning tree the set of all ''E''&nbsp;&minus;&nbsp;''V''&nbsp;+&nbsp;1 fundamental cycles forms a [[cycle basis]], a basis for the [[cycle space]].<ref>{{harvtxt|Kocay|Kreher|2004}}, pp.&nbsp;65–67.</ref>
 
===Fundamental cutsets===
Dual to the notion of a fundamental cycle is the notion of a '''fundamental cutset'''. By deleting just one edge of the spanning tree, the vertices are partitioned into two disjoint sets. The fundamental cutset is defined as the set of edges that must be removed from the graph ''G'' to accomplish the same partition. Thus, each spanning tree defines a set of ''V''&nbsp;&minus;&nbsp;1 fundamental cutsets, one for each edge of the spanning tree.<ref>{{harvtxt|Kocay|Kreher|2004}}, pp.&nbsp;67–69.</ref>
 
The duality between fundamental cutsets and fundamental cycles is established by noting that cycle edges not in the spanning tree can only appear in the cutsets of the other edges in the cycle; and ''vice versa'': edges in a cutset can only appear in those cycles containing the edge corresponding to the cutset. This duality can also be expressed using the theory of [[matroid]]s, according to which a spanning tree is a base of the [[graphic matroid]], a fundamental cycle is the unique circuit within the set formed by adding one element to the base, and fundamental cutsets are defined in the same way from the [[dual matroid]].<ref>{{citation|title=Matroid Theory|volume=3|series=Oxford Graduate Texts in Mathematics|first=J. G.|last=Oxley|authorlink=James Oxley|publisher=Oxford University Press|year=2006|isbn=9780199202508|page=141|url=http://books.google.com/books?id=puKta1Hdz-8C&pg=PA141}}.</ref>
 
===Spanning forests===
In graphs that are not connected, there can be no spanning tree, and one must consider '''spanning forests''' instead. Here there are two competing definitions:
*Some authors consider a spanning forest to be a maximal acyclic subgraph of the given graph, or equivalently a graph consisting of a spanning tree in each [[Connected component (graph theory)|connected component]] of the graph.<ref>{{citation|title=Modern Graph Theory|volume=184|series=Graduate Texts in Mathematics|first=Béla|last=Bollobás|authorlink=Béla Bollobás|publisher=Springer|year=1998|isbn=9780387984889|page=350|url=http://books.google.com/books?id=SbZKSZ-1qrwC&pg=PA350}}; {{citation|title=LEDA: A Platform for Combinatorial and Geometric Computing|first=Kurt|last=Mehlhorn|authorlink=Kurt Mehlhorn|publisher=Cambridge University Press|year=1999|isbn=9780521563291|page=260|url=http://books.google.com/books?id=Q2aXZl3fgvMC&pg=PA260}}.</ref>
*For other authors, a spanning forest is a forest that spans all of the vertices, meaning only that each vertex of the graph is a vertex in the forest. For this definition, even a connected graph may have a disconnected spanning forest, such as the forest in which each vertex forms a single-vertex tree.<ref>{{citation|title=Combinatorics: Topics, Techniques, Algorithms|first=Peter J.|last=Cameron|authorlink=Peter Cameron (mathematician)|publisher=Cambridge University Press|year=1994|isbn=9780521457613|page=163|url=http://books.google.com/books?id=_aJIKWcifDwC&pg=PA163}}.</ref>
To avoid confusion between these two definitions, {{harvtxt|Gross|Yellen|2005}} suggest the term "full spanning forest" for a spanning forest with the same connectivity as the given graph, while {{harvtxt|Bondy|Murty|2008}} instead call this kind of forest a "maximal spanning forest".<ref>{{citation|title=Graph Theory and Its Applications|edition=2nd|first1=Jonathan L.|last1=Gross|first2=Jay|last2=Yellen|publisher=CRC Press|year=2005|isbn=9781584885054|page=168|url=http://books.google.com/books?id=-7Q_POGh-2cC&pg=PA168}}; {{citation|title=Graph Theory|volume=244|series=Graduate Texts in Mathematics|first1=J. A.|last1=Bondy|first2=U. S. R.|last2=Murty|publisher=Springer|year=2008|isbn=9781846289705|page=578|url=http://books.google.com/books?id=V0gUTxkOSboC&pg=PA578}}.</ref>
 
== Counting spanning trees ==
[[Image:Cayley's formula 2-4.svg|thumb|[[Cayley's formula]] counts the number of spanning trees on a complete graph. There are <math>2^{2-2}=1</math> trees in <math>K_2</math>,
<math>3^{3-2}=3</math> trees in <math>K_3</math>, and <math>4^{4-2}=16</math>
trees in <math>K_4</math>.]]
The number ''t''(''G'') of spanning trees of a connected graph is a well-studied
[[invariant (mathematics)|invariant]].
 
===In specific graphs===
In some cases, it is easy to calculate ''t''(''G'') directly:
*If ''G'' is itself a tree, then ''t''(''G'')&nbsp;=&nbsp;1.
*When ''G'' is the [[cycle graph]] ''C<sub>n</sub> with ''n'' vertices, then ''t''(''G'')&nbsp;=&nbsp;''n''.
*For a [[complete graph]]  with ''n'' vertices, [[Cayley's formula]]<ref>{{citation
| last1 = Aigner | first1 = Martin | author1-link = Martin Aigner
| last2 = Ziegler | first2 = Günter M. | author2-link = Günter M. Ziegler
| pages = 141–146
| publisher = [[Springer-Verlag]]
| title = [[Proofs from THE BOOK]]
| year = 1998}}.</ref> gives the number of spanning trees as ''n''<sup>''n''&nbsp;&minus;&nbsp;2</sup>.
*If ''G'' is the [[complete bipartite graph]] <math>K_{p,q}</math>,<ref>{{citation|title=Pearls in Graph Theory: A Comprehensive Introduction|first1=Nora|last1=Hartsfield|first2=Gerhard|last2=Ringel|author2-link=Gerhard Ringel|publisher=Courier Dover Publications|year=2003|isbn=9780486432328|page=100|url=http://books.google.com/books?id=R6pq0fbQG0QC&pg=PA100}}.</ref> then <math>t(G)=p^{q-1}q^{p-1}</math>.
*For the ''n''-dimensional [[hypercube graph]] <math>Q_n</math>,<ref>{{citation
| last1 = Harary | first1 = Frank | author1-link = Frank Harary
| last2 = Hayes | first2 = John P.
| last3 = Wu | first3 = Horng-Jyh
| doi = 10.1016/0898-1221(88)90213-1
| issue = 4
| journal = Computers & Mathematics with Applications
| mr = 949280
| pages = 277–289
| title = A survey of the theory of hypercube graphs
| volume = 15
| year = 1988}}.</ref> the number of spanning trees is <math>t(G)=2^{2^n-n-1}\prod_{k=2}^n k^{{n\choose k}}</math>.
 
===In arbitrary graphs===
{{main|Kirchhoff's theorem}}
More generally, for any graph ''G'', the number ''t''(''G'') can be calculated in [[polynomial time]] as the [[determinant]] of a [[matrix (mathematics)|matrix]] derived from the graph,
using [[Kirchhoff's theorem|Kirchhoff's matrix-tree theorem]].<ref>{{citation|title=Graphs, Algorithms, and Optimization|series=Discrete Mathematics and Its Applications|first1=William|last1=Kocay|first2=Donald L.|last2=Kreher|publisher=CRC Press|year=2004|isbn=9780203489055|pages=111–116|contribution=5.8 The matrix-tree theorem|url=http://books.google.com/books?id=zxSmHAoMiRUC&pg=PA111}}.</ref>
 
Specifically, to compute ''t''(''G''), one constructs a square matrix in which the rows and columns are both indexed by the vertices of ''G''. The entry in row ''i'' and column ''j'' is one of three values:
*The degree of vertex ''i'', if ''i''&nbsp;=&nbsp;''j'',
*&minus;1, if vertices ''i'' and ''j'' are adjacent, or
*0, if vertices ''i'' and ''j'' are different from each other but not adjacent.
The resulting matrix is [[singular matrix|singular]], so its determinant is zero. However, deleting the row and column for an arbitrarily chosen vertex leads to a smaller matrix whose determinant is exactly&nbsp;''t''(''G'').
 
===Deletion-contraction===
If ''G'' is a graph or [[multigraph]] and ''e'' is an arbitrary edge of ''G'', then the number ''t''(''G'') of spanning trees of ''G'' satisfies the ''deletion-contraction recurrence''
''t''(''G'')&nbsp;=&nbsp;''t''(''G''&nbsp;&minus;&nbsp;''e'')&nbsp;+&nbsp;''t''(''G''/''e''), where ''G''&nbsp;&minus;&nbsp;''e'' is the multigraph obtained by deleting ''e''
and ''G''/''e'' is the [[Edge_contraction|contraction]] of ''G'' by ''e''.<ref>{{harvtxt|Kocay|Kreher|2004}}, p.&nbsp;109.</ref> The term ''t''(''G''&nbsp;&minus;&nbsp;''e'') in this formula counts the spanning trees of&nbsp;''G'' that do not use edge&nbsp;''e'', and the term ''t''(''G''/''e'') counts the spanning trees of&nbsp;''G'' that use&nbsp;''e''.
 
In this formula, if the given graph ''G'' is a [[multigraph]], or if a contraction causes two vertices to be connected to each other by multiple edges,
then the redundant edges should not be removed, as that would lead to the wrong total. For instance a [[bond graph]] connecting two vertices by ''k'' edges has ''k'' different spanning trees, each consisting of a single one of these edges.
 
===Tutte polynomial===
{{main|Tutte polynomial}}
The [[Tutte polynomial]] of a graph can be defined as a sum, over the spanning trees of the graph, of terms computed from the "internal activity" and "external activity" of the tree. Its value at the arguments (1,1) is the number of spanning trees or, in a disconnected graph, the number of maximal spanning forest.<ref>{{harvtxt|Bollobás|1998}}, p. 351.</ref>
 
The Tutte polynomial can also be computed using a deletion-contraction recurrence, but its [[computational complexity]] is high: for many values of its arguments, computing it exactly is [[Sharp-P-complete|#P-complete]], and it is also hard to approximate with a guaranteed [[approximation ratio]]. The point (1,1), at which it can be evaluated using Kirchhoff's theorem, is one of the few exceptions.<ref>{{Citation
|last1=Goldberg | first1= L.A.
|last2=Jerrum | first2=  M.
|author2-link=Mark Jerrum
|title= Inapproximability of the Tutte polynomial
|journal=Information and Computation
| doi=10.1016/j.ic.2008.04.003 
|year=2008
|volume=206
|page=908
|issue=7
}}; {{Citation
| last1= Jaeger |first1= F.
|last2= Vertigan | first2=  D. L.
|last3= Welsh | first3  =D. J. A.|authorlink3=Dominic Welsh
| title= On the computational complexity of the Jones and Tutte polynomials
|journal=Mathematical Proceedings of the Cambridge Philosophical Society
| volume= 108|pages = 35–53
| doi= 10.1017/S0305004100068936
| year= 1990
}}.</ref>
 
== Algorithms ==
===Construction===
A single spanning tree of a graph can be found in [[linear time]] by either [[depth-first search]] or [[breadth-first search]]. Both of these algorithms explore the given graph, starting from an arbitrary vertex ''v'', by looping through the neighbors of the vertices they discover and adding each unexplored neighbor to a data structure to be explored later. They differ in whether this data structure is a  [[Stack (abstract data type)|stack]] (in the case of depth-first search) or a  [[Queue (abstract data type)|queue]] (in the case of breadth-first search). In either case, one can form a spanning tree by connecting each vertex, other than the root vertex ''v'', to the vertex from which it was discovered. This tree is known as a depth-first search tree or a breadth-first search tree according to the graph exploration algorithm used to construct it.<ref>{{citation|title=The Design and Analysis of Algorithms|series=Monographs in Computer Science|first=Dexter|last=Kozen|authorlink=Dexter Kozen|publisher=Springer|year=1992|isbn=9780387976877|page=19|url=http://books.google.com/books?id=L_AMnf9UF9QC&pg=PA19}}.</ref> Depth-first search trees are a special case of a class of spanning trees called [[Trémaux tree]]s, named after the 19th-century discoverer of depth-first search.<ref>{{citation
| last1 = de Fraysseix | first1 = Hubert
| last2 = Rosenstiehl | first2 = Pierre | author2-link = Pierre Rosenstiehl
| contribution = A depth-first-search characterization of planarity
| location = Amsterdam
| mr = 671906
| pages = 75–80
| publisher = North-Holland
| series = Ann. Discrete Math.
| title = Graph theory (Cambridge, 1981)
| volume = 13
| year = 1982}}.</ref>
 
Spanning trees are important in parallel and distributed computing, as a way of maintaining communications between a set of processors; see for instance the [[Spanning Tree Protocol]] used by [[Data link layer|OSI link layer]] devices. However, the depth-first and breadth-first methods for constructing spanning trees on sequential computers are not well suited for parallel and distributed computers.<ref>{{citation
| last = Reif | first = John H. | authorlink = John Reif
| doi = 10.1016/0020-0190(85)90024-9
| issue = 5
| journal = Information Processing Letters
| mr = 801987
| pages = 229–234
| title = Depth-first search is inherently sequential
| volume = 20
| year = 1985}}.</ref> Instead, researchers have devised several more specialized algorithms for finding spanning trees in these models of computation.<ref>{{citation
| last1 = Gallager | first1 = R. G.
| last2 = Humblet | first2 = P. A.
| last3 = Spira | first3 = P. M.
| doi = 10.1145/357195.357200
| issue = 1
| journal = ACM Transactions on Programming Languages and Systems
| pages = 66–77
| title = A distributed algorithm for minimum-weight spanning trees
| volume = 5
| year = 1983}}; {{citation
| last = Gazit | first = Hillel
| doi = 10.1137/0220066
| issue = 6
| journal = SIAM Journal on Computing
| mr = 1135748
| pages = 1046–1067
| title = An optimal randomized parallel algorithm for finding connected components in a graph
| volume = 20
| year = 1991}}; {{citation
| last1 = Bader | first1 = David A.
| last2 = Cong | first2 = Guojing
| doi = 10.1016/j.jpdc.2005.03.011
| issue = 9
| journal = Journal of Parallel and Distributed Computing
| pages = 994–1006
| title = A fast, parallel spanning tree algorithm for symmetric multiprocessors (SMPs)
| url = http://www.cc.gatech.edu/fac/bader/papers/SpanningTree-JPDC2005.pdf
| volume = 65
| year = 2005}}.</ref>
 
===Optimization===
In certain fields of graph theory it is often useful to find a [[minimum spanning tree]] of a [[weighted graph]]. Other optimization problems on spanning trees have also been studied, including the maximum spanning tree, the minimum tree that spans at least k vertices, the [[Minimum degree spanning tree|spanning tree with the fewest edges per vertex]], the [[maximum leaf spanning tree|spanning tree with the largest number of leaves]], the spanning tree with the fewest leaves (closely related to the [[Hamiltonian path problem]]), the minimum diameter spanning tree, and the minimum dilation spanning tree.<ref name="sts">{{citation | last = Eppstein | first= David | authorlink = David Eppstein | title = Spanning trees and spanners | booktitle = Handbook of Computational Geometry | publisher = Elsevier | year = 1999 | pages = 425–461 | url = http://www.ics.uci.edu/~eppstein/pubs/Epp-TR-96-16.pdf}}.</ref><ref>{{citation | last1 = Wu | first1 = Bang Ye | last2 = Chao | first2 = Kun-Mao | title = Spanning Trees and Optimization Problems | year = 2004 | publisher = CRC Press | isbn = 1-58488-436-3}}.</ref>
 
Optimal spanning tree problems have also been studied for finite sets of points in a geometric space such as the [[Euclidean plane]]. For such an input, a spanning tree is again a tree that has as its vertices the given points. The quality of the tree is measured in the same way as in a graph, using the Euclidean distance between pairs of points as the weight for each edge. Thus, for instance, a [[Euclidean minimum spanning tree]] is the same as a graph minimum spanning tree in a [[complete graph]] with Euclidean edge weights. However, it is not necessary to construct this graph in order to solve the optimization problem; the Euclidean minimum spanning tree problem, for instance, can be solved more efficiently in ''O''(''n''&nbsp;log&nbsp;''n'') time by constructing the [[Delaunay triangulation]] and then applying a linear time [[planar graph]] minimum spanning tree algorithm to the resulting triangulation.<ref name="sts"/>
 
===Randomization===
A spanning tree chosen [[random]]ly from among all the spanning trees with equal probability is called a [[uniform spanning tree]]. Wilson's algorithm can be used to generate uniform spanning trees in polynomial time by a process of taking a random walk on the given graph and erasing the cycles created by this walk.<ref>{{citation
| last = Wilson | first = David Bruce
| contribution = Generating random spanning trees more quickly than the cover time
| doi = 10.1145/237814.237880
| mr = 1427525
| pages = 296–303
| title = [[Symposium on Theory of Computing|Proceedings of the Twenty-eighth Annual ACM Symposium on the Theory of Computing (STOC 1996)]]
| year = 1996}}.</ref>
 
An alternative model for generating spanning trees randomly but not uniformly is the [[random minimal spanning tree]]. In this model, the edges of the graph are assigned random weights and then the [[minimum spanning tree]] of the weighted graph is constructed.<ref>{{citation
| last1 = McDiarmid | first1 = Colin
| last2 = Johnson | first2 = Theodore
| last3 = Stone | first3 = Harold S.
| doi = 10.1002/(SICI)1098-2418(199701/03)10:1/2<187::AID-RSA10>3.3.CO;2-Y
| issue = 1-2
| journal = Random Structures & Algorithms
| mr = 1611522
| pages = 187–204
| title = On finding a minimum spanning tree in a network with random weights
| url = http://www.stats.ox.ac.uk/~cstone/mst.pdf
| volume = 10
| year = 1997}}.</ref>
 
===Enumeration===
Because a graph may have exponentially many spanning trees, it is not possible to list them all in [[polynomial time]]. However, algorithms are known for listing all spanning trees in polynomial time per tree.<ref>{{citation
| last1 = Gabow | first1 = Harold N.
| last2 = Myers | first2 = Eugene W. | author2-link = Eugene Myers
| doi = 10.1137/0207024
| issue = 3
| journal = [[SIAM Journal on Computing]]
| mr = 0495152
| pages = 280–287
| title = Finding all spanning trees of directed and undirected graphs
| volume = 7
| year = 1978}}</ref>
 
==In infinite graphs==
Every finite connected graph has a spanning tree. However, for infinite connected graphs, the existence of spanning trees is equivalent to the [[axiom of choice]]. An infinite graph is connected if each pair of its vertices forms the pair of endpoints of a finite path. As with finite graphs, a tree is a connected graph with no finite cycles, and a spanning tree can be defined either as a maximal acyclic set of edges or as a tree that contains every vertex.<ref name="serre"/>
 
The trees within a graph may be partially ordered by their subgraph relation, and any infinite chain in this partial order has an upper bound (the union of the trees in the chain). [[Zorn's lemma]], one of many equivalent statements to the axiom of choice, states that a partial order in which all chains are upper bounded must have a maximal element; in the partial order on the trees of the graph, this maximal element must be a spanning tree. Therefore, if Zorn's lemma is true, every infinite connected graph has a spanning tree.<ref name="serre">{{citation|title=Trees|first=Jean-Pierre|last=Serre|authorlink=Jean-Pierre Serre|page=23|publisher=Springer|series=Springer Monographs in Mathematics|year=2003}}.</ref>
 
In the other direction, given a [[family of sets]], it is possible to construct an infinite graph such that every spanning tree of the graph corresponds to a [[choice function]] of the family of sets. Therefore,
if every infinite connected graph has a spanning tree, then the axiom of choice is true.<ref>{{citation
| last = Soukup | first = Lajos
| contribution = Infinite combinatorics: from finite to infinite
| doi = 10.1007/978-3-540-77200-2_10
| location = Berlin
| mr = 2432534
| pages = 189–213
| publisher = Springer
| series = Bolyai Soc. Math. Stud.
| title = Horizons of combinatorics
| volume = 17
| year = 2008}}. See in particular Theorem 2.1, [http://books.google.com/books?id=kIKW18ENfUMC&pg=PA192 pp.&nbsp;192–193].</ref>
 
==Notes==
{{reflist|30em}}
 
 
[[Category:Spanning tree]]
[[Category:Computational problems in graph theory]]
[[Category:Axiom of choice]]

Revision as of 11:28, 25 February 2014

Roberto is what's written concerning his birth certificate yet he never really appreciated that name. South Carolina is michael's birth place. The best-loved hobby for him and as well , his kids is to fish and he's been doing it for quite some time. Auditing is how he supports his own family. Go of his website to find out more: http://circuspartypanama.com

my homepage; clash of clans hack download no survey no password