Docsity

Graph Algorithms and Network Theory: Terms and Definitions, Quizzes of Mathematics

Toggle sidebar
bg1
TERM 1
Prim's Algorithm
DEFINITION 1
In computer science, Prim's algorithm is a greedy algorithm that
finds a minimum spanning tree for a c onnected weighted
undirected graph.Pick a vertex T an d 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 p ossible edges are added
without creating a cycle.
TERM 2
Dijkstra's Algorithm
DEFINITION 2
Graph search algorithm for a minimal spa nning tree.Pick and a vertex this
is your root it's length to itself is 0.Then perfo rm 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), th en edges picked are AB, and
ACThis algorithm will not work if there are e dges 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 co uld have a - or 0 length.
TERM 3
Nearest Neighbor Algorithm
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
Edge Picking Algorithm
DEFINITION 4
Also for finding minimal Hamilton cyclePick the cheapest
edges possible, then pick the final edge to close the cycle.
TERM 5
Euclidean Algorithm
DEFINITION 5
For a cheap Hamiltonian circuit wher e G does not have a cycle.1.
create minimal Spanning tree2. Eule rize minimal spanning tree3.
Create a path to all vertices using th is new graph, just start at one
point and move your way around unt il you return.4. Take this path
and cross out the paths you cannot t ake 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
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Graph Algorithms and Network Theory: Terms and Definitions and more Quizzes Mathematics in PDF only on Docsity!

Prim's Algorithm

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

Dijkstra's Algorithm

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

Nearest Neighbor Algorithm

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

Edge Picking Algorithm

DEFINITION 4 Also for finding minimal Hamilton cyclePick the cheapest edges possible, then pick the final edge to close the cycle. TERM 5

Euclidean Algorithm

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

Breadth-First Search

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

Depth First Search

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

Bipartite Graph

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

Tree

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

Spanning Tree

DEFINITION 10 A tree subgraph of G in the form of a tree that contains all of the vertices.

Capacity of a Cut

Capacity of a cut is the capacity from any vertex in S to any vertex in T. TERM 17

Flow of a cut

DEFINITION 17 The flow from any vertex in S to any vertex in T TERM 18

Minimal Cut Theorem

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

Flow Augmentation

Algorithm

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

Flow reduction Algorithm

DEFINITION 20 Same as Flow Augmentation algorithms except residual flow = F(e)-c(e)

Back Flow method

NOT REALLY SURE!!!

TERM 22

4-Color Theorem

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

5-Color Theorem

DEFINITION 23 In book and is rediculous. TERM 24

Complete Graph color Theorem

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

Cycle/ Circuit Color Theorem

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.

Platonic

Solid/Graph

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

Simple Graph

DEFINITION 32 A graph without loops, or parallel edges (multiple edges between two vertices). TERM 33

Planar Graph

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

Bridge

DEFINITION 34 An edge where if removed from a graph, the graph will be disconnected. TERM 35

Fullerene

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

Euler Graph

A graph in which exists a circuit or path visiting each edge once and only once. TERM 37

Euler Circuit

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

Euler Path

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

Eulerization of a Graph

DEFINITION 39 Connect the vertices in the graph that are of odd degree. TERM 40

Hamilton Circuit/Path

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

m-ary Tree

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

Tree edges-vertices theorem

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

Height of a Tree

DEFINITION 48 Length of the longest path from the root. TERM 49

Height to Leaf # for m-ary tree

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

Kruskal's Algorithm

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