






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







In computer science, Prim's algorithm is a greedy algorithm that finds a minimum spanning tree for a connected weighted undirected graph.Pick a vertex T and then pick edges leading from it with the cheapest cost, If there is a cheaper edge adjacent to a previously chosen vertex backtrack to it then add that edge and continue from there until the most possible edges are added without creating a cycle. TERM 2
DEFINITION 2 Graph search algorithm for a minimal spanning tree.Pick and a vertex this is your root it's length to itself is 0.Then perform a Breadth first giving the weight of the path to each vertex through each of the other vertices. When a cheaper path to a vertex is found the vertex is relabeled. The edges picked for tree are denoted by the labels. So if your root is (A,0), c is (B,2) or (A,1), and B is (c, 2) or (A,1), then edges picked are AB, and ACThis algorithm will not work if there are edges w/ negative numbers bc you can leave vertex b go to a then back to b and use that for the distance of b so if ab was negative you could have a - or 0 length. TERM 3
DEFINITION 3 This is for finding minimal Hamilton cycles. Pick a vertex A, follow cheapest path picking one edge at a time leading from the vertex you are currently on until all vertices are reached and you must pick the edge to return to A. TERM 4
DEFINITION 4 Also for finding minimal Hamilton cyclePick the cheapest edges possible, then pick the final edge to close the cycle. TERM 5
DEFINITION 5 For a cheap Hamiltonian circuit where G does not have a cycle.1. create minimal Spanning tree2. Eulerize minimal spanning tree3. Create a path to all vertices using this new graph, just start at one point and move your way around until you return.4. Take this path and cross out the paths you cannot take bc u cnnt return to a vertex.5. write out new path w/ the weights of each path*if an edge does not exist use Pythagorean theorem to find distance between points
Take a node from G , label this as root. Then add all vertices adjacent to this vertex to the graph, then go to the first of the verticies added and add all the vertices adjacent to it that are not already in the graph.This is used for creating spanning trees of a graph, searching each node. TERM 7
DEFINITION 7 Used for creating a spanning tree from G, or searching G. Pick a vertex to be the root. Then Follow a path leading from the root as far out as it will go adding one vertex at a time. Once end of path is reached back track until we can build a new leaf from or path. Continue this for all paths possible from the root until the vertices are all added. TERM 8
DEFINITION 8 A graph that can be two colored, meaning the vertices can be separated into two sides where the vertices on each side are not connected to each other but only to vertices on the other side. K3,3 is a Bipartite graph. There are 6 vertices each with a degree of 3. TERM 9
DEFINITION 9 A rooted graph, with no cycles or circuits. All edges are bridges in that if any are removed G will be disconnected.There is also a unique path between any two points. Is considered Bipartite in that it is 2 colorable. TERM 10
DEFINITION 10 A tree subgraph of G in the form of a tree that contains all of the vertices.
Capacity of a cut is the capacity from any vertex in S to any vertex in T. TERM 17
DEFINITION 17 The flow from any vertex in S to any vertex in T TERM 18
DEFINITION 18 Max Flow = Capacity of minimum cutF(S,T) = v(f) flow of network = sum(flow of any edge from S to T) + sum(flow of any edge T to S) if maximized last part = 0F(S,T) = v(f) = sum(flow of any edge from S to T) <= C(S,T)we assume edges have full capacity flow on them by taking things with residual capacity and grouping them into S. And if flow = capacity on cut F(S,T) = C(S,T) = v(f) TERM 19
DEFINITION 19 Find paths from S to T with residual capacity. Augment as much as possible. Use back flow if necessary.Checkv(f) = C(S,T) where S contains vertices with residual capacitiesCannot circle a path from S to T based on residual capacity (you can back flow on lines with a flow but not with f = 0) TERM 20
DEFINITION 20 Same as Flow Augmentation algorithms except residual flow = F(e)-c(e)
TERM 22
DEFINITION 22 If G is planar X(G) <= 4Thm (by teacher not valid)If G contains K it cannot be planar, and thus X(G) != 5, and any sub graph cannot have chromatic number 5 either. So by proof of 5 color theorem, and above X(G) <= 4.Or take all subgraphs of 5 vertices ( for which you know X(sub)<= 4 bc it cannot be complete and planar) and connect them and you get G. More of a computer proof. TERM 23
DEFINITION 23 In book and is rediculous. TERM 24
DEFINITION 24 X(Kn) = n because each vertex is connected to one-another.If Kn is a subgraph of G then X(G) >= nBeacuse of Sub-Graph Coloring Theorem TERM 25
DEFINITION 25 X(C) is the chromatic number of the cycleIf every cycle has an even number of vertices X(C) = 2, A graph w/ all even cycles is bipartite. If all cycles in G are even X(G) = 2.If there is a Cycle of odd number of vertices, then X(C) = 3, because one vertex will be adjacent to two vertices of different colors. If there is an odd cycle in G then X(G) >= 3 by subgraph theorem.
A planar, simple graph that is regular, and it's dual is regular and simple. dV = 2e applies dv/n = F applies nf = 2e also applies d is degree of vertices, and n is number of edges each face has (d-2)(n-2) < 4 must also apply for this and it's dual to be simple and planar TERM 32
DEFINITION 32 A graph without loops, or parallel edges (multiple edges between two vertices). TERM 33
DEFINITION 33 A graph with no edge crossingsconnected graph : v-e+F = 2, e<= 3v - 6disconnected Graph: F = e - v + c +1 ,c is number of disconnected parts e <= 3v-3c- TERM 34
DEFINITION 34 An edge where if removed from a graph, the graph will be disconnected. TERM 35
DEFINITION 35 3-regular planar graphs, this is a platonic solid/graphA fullerene is any molecule composed entirely of carbon, in the form of a hollow sphere, ellipsoid or tube.e = (5p+6h)/2 p is number of pentagons, h is number of hexagons
A graph in which exists a circuit or path visiting each edge once and only once. TERM 37
DEFINITION 37 A path that visits each edge only once and ends on the same vertex it began. These exist for graphs of all even degree vertices.The dual of a graph is Eulerian if each face has an even number of adjacent faces. The line graph of a graph with an Euler circuit will have an Euler circuit.Kn of n odd degree have these, so do Kn,m where m is even (chk) TERM 38
DEFINITION 38 A path that visits each edge only once and ends on a different vertex than it began, due to a vertices with an odd degrees. It will always end on an odd vertex, because it has more "ins" than "outs". TERM 39
DEFINITION 39 Connect the vertices in the graph that are of odd degree. TERM 40
DEFINITION 40 A circuit/ path that visits each vertex once and only once.Further definition necessary, ask clemons.Kr,s both r and s must be even for a Hamilton Circuit to exist.# of Hamilton cycles = Nlog(N) - N
Each parent has no more than m children.Given i, l = (m- 1)i+1 and n = mi+1 where l is #of Leaves, and i is # of internal verticesGiven l, i = (l-1)/(m-1) and n=(ml-l)/(m- 1)Given n, i = (n-1)/m and l = [(m-1)n+1]/m TERM 47
DEFINITION 47 A tree with n vertices has n-1 edges.Prf:Since each non-root vertex has a unique incoming edge , and there n-1 non-root vertices then there are n-1 edges, because the root does not have edges leading to it. TERM 48
DEFINITION 48 Length of the longest path from the root. TERM 49
DEFINITION 49 l <= m^hprf: max number of children for each parent is m, so an m number of possible leaves from an m number of parents so max number of leaves = m^h.h>= (logl/log2)rounded up to nearest integer proof in 3.1 of book TERM 50
DEFINITION 50 Kruskal's algorithm is a greedy algorithm in graph theory that finds a minimum spanning tree for a connected weighted graph.Pick edges of the smallest values throughout G until you have the maximum number of edges without creating a circuit/cycle