SlideShare a Scribd company logo
MINIMUM SPANNINGA Networking Model Report forDPA 702 QUANTITATIVE METHODS OF RESEARCHBy:ALONA M. SALVACebu Technological University
TopicsDefinitions & Networking Basics
MST Algorithms
Kruskal
Reverse Delete
Prim
Brief History
ImportanceDefinitions & Networking BasicsNetwork models are created from two major building blocks: arcs (sometimes called edges), which are connecting lines, and nodes, which are the connecting points for the arcs. A graph is a structure that is built by interconnecting nodes and arcs. A directed graph (often called a digraph) is a graph in which the arcs have specified directions, as shown by arrowheads. Finally, a network is a graph (or more commonly a digraph) in which the arcs have an associated flow. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
Networking BasicsA network is an arrangement of paths connected at various points, through which items move.Introduction to Management Science, 9thed, Bernard W. Taylor III, 2006Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitions & Networking BasicsSome further definitions associated with graphs and networks: chain: a sequence of arcs connecting two nodes i and j. For example, in Figure 8.1(a), we might connect nodes A and E via the chains ABCE or ADCE. path: a sequence of directed arcs connecting two nodes. In this case, you must respect the arc directions. For example, in Figure 8.1(b), a path from A to E might be ABDE, but the chain ABCE is not a path because it traverses arc BC in the wrong direction. cycle: a chain that connects a node to itself without any retracing. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitions & Networking Basicsconnected graph (or connected network): has just one part. In other words you can reach any node in the graph or network via a chain from any other node. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
tree: a connected graph having no cycles. Some examples are shown in Figure 8.2(a).Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitionsspanning tree: normally a tree selected from among the arcs in a graph or network so that all of the nodes in the tree are connected. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitionsflow capacity: an upper (and sometimes lower) limit on the amount of flow in an arc in a network. For example, the maximum flow rate of water in a pipe, or the maximum simultaneous number of calls on a telephone connection. source (or source node): a node which introduces flow into a network. This happens at the boundary between the network under study and the external world. sink (or sink node): a node which removes flow from a network. This happens at the boundary between the network under study and the external world. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
The Minimum Spanning Tree Problem Given a graph in which the arcs are labeled with the distances between the nodes that they connect, find a spanning tree which has the minimum total length. NO CYCLES ALLOWED!!ALGORITHMS – a problem solving procedure following a set of rulesCycle- the nodes are connected by more than one edge.Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
Steps of the minimal spanning tree solution method:Select any starting node (conventionally, node 1 is selected).Select the node closest to the starting node to join the spanning tree.Select the closest node not presently in the spanning tree.Repeat step 3 until all nodes have joined the spanning tree.Introduction to Management Science, 9thed, Bernard W. Taylor III, 2006
Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
What is an MST AlgorithmAn MST algorithm is a way to show the shortest distanceThere are many different algorithms:Kruskal
Reverse Delete
PrimIntroduction to Management Science, 9thed, Bernard W. Taylor III, 2006
KRUSKAL’S ALGORITHMPick out the smallest edgesRepeat Step 1 as long as the edges selected does not create a cycleWhen all nodes have been connected, you are donehttp://www.slideshare.net/zhaokatherine/minimum-spanning-tree
REVERSE-DELETE ALGORITHMThis is the opposite of Kruskal’s algorithmStart with all edgesDelete the longest edgeContinue deleting longest edges as long as all nodes are connected and no cycles are formedhttp://www.slideshare.net/zhaokatherine/minimum-spanning-tree
PRIM’S ALGORITHMPick out a nodPick out the shortest edge that is connected to your tree so far, as long as it doesn’t create a cycleContinue this until all nodes are coveredhttp://www.slideshare.net/zhaokatherine/minimum-spanning-tree
17iabhcdefg87942111446710821The execution of Kruskal's algorithm (Moderate part)The edges are considered by the algorithm in sorted order by weight.
The edge under consideration at each step is shown with a red weight number.18iiabhcdefgabhcdefg8787994422111114144467671010882121
19iiabhcdefgabhcdefg8787994422111114144467671010882121
20iiabhcdefgabhcdefg8787994422111114144467671010882121
21iiabhcdefgabhcdefg8787994422111114144467671010882121
22iiabhcdefgabhcdefg8787994422111114144467671010882121
23Prim's algorithm(basic part)MST_PRIM(G,w,r)A={}S:={r} (r is an arbitrary node in V)3.   Q=V-{r}; 4.   while Q is not empty do {5       take an edge (u, v) such that (1) u S and v  Q (v S ) and            (u, v) is the  shortest edge  satisfying (1)6       add (u, v) to A,  add v to S and delete v from Q       }
24Prim's algorithmMST_PRIM(G,w,r)1	for each u in Q dokey[u]:=∞parent[u]:=NIL4  key[r]:=0; parent[r]=NIL;5	QV[Q]6	while Q!={} do7		u:=EXTRACT_MIN(Q); if parent[u]Nil print (u, parent[u])8		for each v in Adj[u] do9			if v in Q and w(u,v)<key[v]10			then	parent[v]:=u11				key[v]:=w(u,v)
25Grow the minimum spanning tree from the root vertex r.
Q is a priority queue, holding all vertices that are not in the tree now.

More Related Content

PPT
minimum spanning tree
PPTX
Minimum Spanning Tree
PPTX
Ford Fulkerson Algorithm
PPT
KRUSKAL'S algorithm from chaitra
PPT
Minimum spanning tree
PPTX
Kruskal Algorithm
PPTX
Spanning trees & applications
PPT
Maximum flow
minimum spanning tree
Minimum Spanning Tree
Ford Fulkerson Algorithm
KRUSKAL'S algorithm from chaitra
Minimum spanning tree
Kruskal Algorithm
Spanning trees & applications
Maximum flow

What's hot (20)

PPTX
Dijkstra s algorithm
PPT
Divide and conquer
PPTX
Kruskal & Prim's Algorithm
PPT
Spanning trees
PDF
Shortest Path in Graph
PPTX
Matrix chain multiplication by MHM
PPTX
Branch and bound technique
PPT
Recursion tree method
PPT
The Floyd–Warshall algorithm
PPT
Bellman Ford's Algorithm
PPTX
Data structure - Graph
PPTX
sum of subset problem using Backtracking
PPT
Greedy Algorithms WITH Activity Selection Problem.ppt
PPT
Sum of subsets problem by backtracking 
PDF
Minimum spanning tree
PPTX
Vertex cover problem
PDF
Ford Fulkerson Algorithm
PPTX
Minimum spanning tree (mst)
PPTX
Kruskal Algorithm
PPTX
Single source Shortest path algorithm with example
Dijkstra s algorithm
Divide and conquer
Kruskal & Prim's Algorithm
Spanning trees
Shortest Path in Graph
Matrix chain multiplication by MHM
Branch and bound technique
Recursion tree method
The Floyd–Warshall algorithm
Bellman Ford's Algorithm
Data structure - Graph
sum of subset problem using Backtracking
Greedy Algorithms WITH Activity Selection Problem.ppt
Sum of subsets problem by backtracking 
Minimum spanning tree
Vertex cover problem
Ford Fulkerson Algorithm
Minimum spanning tree (mst)
Kruskal Algorithm
Single source Shortest path algorithm with example
Ad

Viewers also liked (20)

PPTX
Minimum spanning Tree
PPTX
Minimum spanning tree algorithms by ibrahim_alfayoumi
PPT
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
PPT
Prim's Algorithm on minimum spanning tree
PPT
Quantitative Analysis for Management, Tenth Edition
PPTX
Graph problem & lp formulation
PPT
Minimum spanning tree
PDF
5.3 arbol de expansión minima algoritmo de prim
PPTX
Operations research
PPT
Spanning Tree Protocol
PPT
Graphs In Data Structure
PPTX
Operations research - an overview
PPT
Max flow min cut
PPT
Normalization
PPT
minimum spanning trees Algorithm
PPTX
Linkers
PPTX
Data structures and algorithms lab7
PDF
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
DOC
Taylor mgmt science10-tif_01
PPTX
Combinatorial Optimization
Minimum spanning Tree
Minimum spanning tree algorithms by ibrahim_alfayoumi
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
Prim's Algorithm on minimum spanning tree
Quantitative Analysis for Management, Tenth Edition
Graph problem & lp formulation
Minimum spanning tree
5.3 arbol de expansión minima algoritmo de prim
Operations research
Spanning Tree Protocol
Graphs In Data Structure
Operations research - an overview
Max flow min cut
Normalization
minimum spanning trees Algorithm
Linkers
Data structures and algorithms lab7
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Taylor mgmt science10-tif_01
Combinatorial Optimization
Ad

Similar to My presentation minimum spanning tree (20)

PPTX
Network flow
PPTX
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
PPTX
Network and Tree in Graph Theory
PDF
Network analysis
PPTX
Minimum Spanning Tree (Data Structure and Algorithm)
PPT
Mit15 082 jf10_lec01
PPT
Timing¬Driven Variation¬Aware NonuniformClock Mesh Synthesis
PPTX
OR II - M3.pptx
PPTX
8_MST_pptx.pptx
PPT
ABAQUS LEC.ppt
PPT
sensys-ch10-topologyoihwi sa ashsad ihdsa 0dish adsiohsd
PDF
Algorithms explained
PPTX
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
PDF
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
PDF
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
PDF
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
PPTX
PDF
Implementation of Spanning Tree Protocol using ns-3
PPTX
Ram minimum spanning tree
PPTX
Minimum Spanning Tree
Network flow
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
Network and Tree in Graph Theory
Network analysis
Minimum Spanning Tree (Data Structure and Algorithm)
Mit15 082 jf10_lec01
Timing¬Driven Variation¬Aware NonuniformClock Mesh Synthesis
OR II - M3.pptx
8_MST_pptx.pptx
ABAQUS LEC.ppt
sensys-ch10-topologyoihwi sa ashsad ihdsa 0dish adsiohsd
Algorithms explained
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
Implementation of Spanning Tree Protocol using ns-3
Ram minimum spanning tree
Minimum Spanning Tree

More from Alona Salva (18)

PDF
1.2 theories of nationalism
PDF
1.1 what is nationalism
PDF
Political science part xi
DOC
Does God Exist
PDF
Political science part vii
PDF
Political science part viii
PDF
Political science part ix
PDF
Political science part x
PDF
National budget
PDF
Process of research
PDF
Political science part iii
PDF
Political science part ii
PDF
Political science part i
PDF
Vienna convention on consular relations
PDF
Social theory of International Politics
PPTX
Shortest route and mst
PPT
PPT
F E R P A
1.2 theories of nationalism
1.1 what is nationalism
Political science part xi
Does God Exist
Political science part vii
Political science part viii
Political science part ix
Political science part x
National budget
Process of research
Political science part iii
Political science part ii
Political science part i
Vienna convention on consular relations
Social theory of International Politics
Shortest route and mst
F E R P A

Recently uploaded (20)

PDF
How to Get Business Funding for Small Business Fast
PPTX
New Microsoft PowerPoint Presentation - Copy.pptx
PPTX
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
PPTX
Probability Distribution, binomial distribution, poisson distribution
PPTX
AI-assistance in Knowledge Collection and Curation supporting Safe and Sustai...
PDF
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
DOCX
unit 1 COST ACCOUNTING AND COST SHEET
PDF
Nidhal Samdaie CV - International Business Consultant
PPTX
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
PDF
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
DOCX
Euro SEO Services 1st 3 General Updates.docx
PDF
Unit 1 Cost Accounting - Cost sheet
PDF
DOC-20250806-WA0002._20250806_112011_0000.pdf
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
DOCX
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
PPT
Chapter four Project-Preparation material
PDF
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
PDF
Laughter Yoga Basic Learning Workshop Manual
PPTX
Principles of Marketing, Industrial, Consumers,
PDF
Power and position in leadershipDOC-20250808-WA0011..pdf
How to Get Business Funding for Small Business Fast
New Microsoft PowerPoint Presentation - Copy.pptx
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
Probability Distribution, binomial distribution, poisson distribution
AI-assistance in Knowledge Collection and Curation supporting Safe and Sustai...
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
unit 1 COST ACCOUNTING AND COST SHEET
Nidhal Samdaie CV - International Business Consultant
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
Euro SEO Services 1st 3 General Updates.docx
Unit 1 Cost Accounting - Cost sheet
DOC-20250806-WA0002._20250806_112011_0000.pdf
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
Chapter four Project-Preparation material
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
Laughter Yoga Basic Learning Workshop Manual
Principles of Marketing, Industrial, Consumers,
Power and position in leadershipDOC-20250808-WA0011..pdf

My presentation minimum spanning tree

  • 1. MINIMUM SPANNINGA Networking Model Report forDPA 702 QUANTITATIVE METHODS OF RESEARCHBy:ALONA M. SALVACebu Technological University
  • 8. ImportanceDefinitions & Networking BasicsNetwork models are created from two major building blocks: arcs (sometimes called edges), which are connecting lines, and nodes, which are the connecting points for the arcs. A graph is a structure that is built by interconnecting nodes and arcs. A directed graph (often called a digraph) is a graph in which the arcs have specified directions, as shown by arrowheads. Finally, a network is a graph (or more commonly a digraph) in which the arcs have an associated flow. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 9. Networking BasicsA network is an arrangement of paths connected at various points, through which items move.Introduction to Management Science, 9thed, Bernard W. Taylor III, 2006Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 10. Definitions & Networking BasicsSome further definitions associated with graphs and networks: chain: a sequence of arcs connecting two nodes i and j. For example, in Figure 8.1(a), we might connect nodes A and E via the chains ABCE or ADCE. path: a sequence of directed arcs connecting two nodes. In this case, you must respect the arc directions. For example, in Figure 8.1(b), a path from A to E might be ABDE, but the chain ABCE is not a path because it traverses arc BC in the wrong direction. cycle: a chain that connects a node to itself without any retracing. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 11. Definitions & Networking Basicsconnected graph (or connected network): has just one part. In other words you can reach any node in the graph or network via a chain from any other node. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 12. tree: a connected graph having no cycles. Some examples are shown in Figure 8.2(a).Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 13. Definitionsspanning tree: normally a tree selected from among the arcs in a graph or network so that all of the nodes in the tree are connected. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 14. Definitionsflow capacity: an upper (and sometimes lower) limit on the amount of flow in an arc in a network. For example, the maximum flow rate of water in a pipe, or the maximum simultaneous number of calls on a telephone connection. source (or source node): a node which introduces flow into a network. This happens at the boundary between the network under study and the external world. sink (or sink node): a node which removes flow from a network. This happens at the boundary between the network under study and the external world. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 15. The Minimum Spanning Tree Problem Given a graph in which the arcs are labeled with the distances between the nodes that they connect, find a spanning tree which has the minimum total length. NO CYCLES ALLOWED!!ALGORITHMS – a problem solving procedure following a set of rulesCycle- the nodes are connected by more than one edge.Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 16. Steps of the minimal spanning tree solution method:Select any starting node (conventionally, node 1 is selected).Select the node closest to the starting node to join the spanning tree.Select the closest node not presently in the spanning tree.Repeat step 3 until all nodes have joined the spanning tree.Introduction to Management Science, 9thed, Bernard W. Taylor III, 2006
  • 17. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 18. What is an MST AlgorithmAn MST algorithm is a way to show the shortest distanceThere are many different algorithms:Kruskal
  • 20. PrimIntroduction to Management Science, 9thed, Bernard W. Taylor III, 2006
  • 21. KRUSKAL’S ALGORITHMPick out the smallest edgesRepeat Step 1 as long as the edges selected does not create a cycleWhen all nodes have been connected, you are donehttp://www.slideshare.net/zhaokatherine/minimum-spanning-tree
  • 22. REVERSE-DELETE ALGORITHMThis is the opposite of Kruskal’s algorithmStart with all edgesDelete the longest edgeContinue deleting longest edges as long as all nodes are connected and no cycles are formedhttp://www.slideshare.net/zhaokatherine/minimum-spanning-tree
  • 23. PRIM’S ALGORITHMPick out a nodPick out the shortest edge that is connected to your tree so far, as long as it doesn’t create a cycleContinue this until all nodes are coveredhttp://www.slideshare.net/zhaokatherine/minimum-spanning-tree
  • 24. 17iabhcdefg87942111446710821The execution of Kruskal's algorithm (Moderate part)The edges are considered by the algorithm in sorted order by weight.
  • 25. The edge under consideration at each step is shown with a red weight number.18iiabhcdefgabhcdefg8787994422111114144467671010882121
  • 30. 23Prim's algorithm(basic part)MST_PRIM(G,w,r)A={}S:={r} (r is an arbitrary node in V)3. Q=V-{r}; 4. while Q is not empty do {5 take an edge (u, v) such that (1) u S and v  Q (v S ) and (u, v) is the shortest edge satisfying (1)6 add (u, v) to A, add v to S and delete v from Q }
  • 31. 24Prim's algorithmMST_PRIM(G,w,r)1 for each u in Q dokey[u]:=∞parent[u]:=NIL4 key[r]:=0; parent[r]=NIL;5 QV[Q]6 while Q!={} do7 u:=EXTRACT_MIN(Q); if parent[u]Nil print (u, parent[u])8 for each v in Adj[u] do9 if v in Q and w(u,v)<key[v]10 then parent[v]:=u11 key[v]:=w(u,v)
  • 32. 25Grow the minimum spanning tree from the root vertex r.
  • 33. Q is a priority queue, holding all vertices that are not in the tree now.
  • 34. key[v] is the minimum weight of any edge connecting v to a vertex in the tree.
  • 35. parent[v] names the parent of v in the tree.
  • 36. When the algorithm terminates, Q is empty; the minimum spanning tree A for G is thus A={(v,parent[v]):v∈V-{r}}.
  • 37. Running time: O(||E||lg |V|). 26iiabhcdefgabhcdefg8787994422111114144467671010882121The execution of Prim's algorithm(moderate part)the root vertex
  • 41. 30iabhcdefg87942111446710821Bottleneck spanning tree: A spanning tree of G whose largest edge weight is minimum over all spanning trees of G. The value of the bottleneck spanning tree is the weight of the maximum-weight edge in T.Theorem:A minimum spanning tree is also a bottleneck spanning tree. (Challenge problem)
  • 42. MST’sKruskal (1956) and Prim (1957) MST’s makes our life easier and we save money by using short paths
  • 43. MST’s was first seen in Poland, France, the Czech Republic Slovakia, and CzechoslovakiaIMPORTANCE OF MST’SWe need it in computer science because it prevent loops in a switched network with redundant pathsIt is one of the oldest and most basic graphs in theoritical computer sciencehttp://www.slideshare.net/zhaokatherine/minimum-spanning-tree
  • 44. Why we like MST’sMST’s are fun to work with It helps us find the shortest route“The shortest distance between two people is a sMILE.”

Editor's Notes

  • #2: Introduction to Networks Network models are an extremely important category of mathematical program that have numerous practical applications. Part of their appeal is the direct and intuitive mapping between the real world, the network diagram, and the underlying solution algorithms. Many network problems can be solved via linear programming, and in fact, special extremely fast variants of linear programming can be applied. The largest mathematical programs that are regularly solved in practice, e.g. airline crew scheduling problems, are usually network problems. For many types of network problems there are also specialized non-LP solution algorithms. We will first look at some of the classic non-LP solution methods, and later return to the idea of solving networks via LP.
  • #3: Basic Definitions Network models are created from two major building blocks: arcs (sometimes called edges), which are connecting lines, and nodes, which are the connecting points for the arcs. A graph is a structure that is built by interconnecting nodes and arcs. A directed graph (often called a digraph) is a graph in which the arcs have specified directions, as shown by arrowheads. Finally, a network is a graph (or more commonly a digraph) in which the arcs have an associated flow. Some example diagrams are given in Figure 8.1.
  • #5: Flow:Wireless networksNetwork of possible cable TV paths
  • #6: There are some further definitions associated with graphs and networks: chain: a sequence of arcs connecting two nodes i and j. For example, in Figure 8.1(a), we might connect nodes A and E via the chains ABCE or ADCE. path: a sequence of directed arcs connecting two nodes. In this case, you must respect the arc directions. For example, in Figure 8.1(b), a path from A to E might be ABDE, but the chain ABCE is not a path because it traverses arc BC in the wrong direction. cycle: a chain that connects a node to itself without any retracing. For example, in Figure 8.1(a), ABCEDA is a cycle, but ABCDECBA is not a cycle because of the double traversal of arcs AB and BC.
  • #7: It is sometimes important to know whether a graph is connected and there are efficient computer algorithms for checking this.
  • #8: tree: a connected graph having no cycles. Some examples are shown in Figure 8.2(a) .
  • #9: spanning tree: normally a tree selected from among the arcs in a graph or network so that all of the nodes in the tree are connected. See Figure 8.2(b). Spanning trees have interesting applications in services layout, for example, finding a way to lay out the computer cable connecting all of the buildings on a campus (nodes) by selecting from among the possible inter-building connections (arcs). See Figure 8.2(b). Spanning trees have interesting applications in services layout, for example, finding a way to lay out the computer cable connecting all of the buildings on a campus (nodes) by selecting from among the possible inter-building connections (arcs).
  • #11: The minimal spanning tree problem is:to connect all nodes in a network so that the total branch lengths are minimized.The technical statement of the minimum spanning tree problem is simple: given a graph in which the arcs are labeled with the distances between the nodes that they connect, find a spanning tree which has the minimum total length. Recall that a spanning tree connects all of the nodes in the graph, and has no cycles. As for the shortest route problem, the arc labels could as well be related to time or cost. There are many examples of applications of the minimum spanning tree problem: 1. Find the least cost set of roadways among the possible set of roadways to connect a set of locations. 2. Find the shortest total length of sewer to lay among the buildings in a planned subdivision, given the set of possible inter-building sewer routes. 3. Find the minimum total length of telephone cable to connect all of the offices in a building, given the possible routings of cable between offices.
  • #12: You can also use excel tabulation in solving this.The solution approach to the minimal spanning tree problem is actually easier than the shortest route solution method. In the minimal spanning tree solution approach, we can start at any node in the network. However, the conventional approach is to start with node 1.
  • #13: Let us begin arbitrarily at node E, and label the nodes with the order in which they are solved, while keeping track of all of the notations on a copy of the graph in Figure 8.10. The closest node to node E is node D at a distance of 4 units, so node D is the 2nd solved node. Candidate unsolved nodes are now B (BD=2), A (AD=5), C (CD=2, CE=5), F (FD=6), and G (GD=3, GE=6). The smallest connecting length is 2 (CD or BD), so we choose CD arbitrarily. Node C is the 3rd solved node. Nodes E, D, and C are now solved. Candidate unsolved nodes are A (AC=2, AD=5), B (BD=2), F (FD=6), and G (GD=3, GE=6). The smallest connecting length is 2 (AC or BD), so we choose BD arbitrarily. Node B is the 4th solved node. Nodes E, D, C and B are now solved. Candidate unsolved nodes are A (AB=3, AD=5, AC=2), F (FB=13, FD=6) and G (GD=3, GE=6). The smallest connecting length is 2 (AC), so this is chosen. Node A is the 5th solved node. Nodes E, D, C, B and A are now solved. Candidate unsolved nodes are F (FB=13, FD=6), and G (GD=3, GE=6). The smallest connecting length is 3 (GD), so node G is the 6th solved node. Nodes E, D, C, B, A and G are now solved. Candidate unsolved nodes are F (FB=13, FD=6, FG=2), and H (HG=6). The smallest connecting length is 2 (FG), so F is the 7th solved node. Finally, all nodes are solved except node H. The candidate connecting lengths are HF=3 and HG=6. HF is chosen, so H is the 8th and last solved node. Now the solution can be recovered. The minimum spanning tree itself is all of the arcs in the arc set (i.e. all of the arcs shown in bold in Figure 8.10). Note how this differs from the shortest route solution in which not all of the arcs in the arc set are part of the final solution. The total length of the minimum spanning tree is found by summing the lengths of all of the arcs in the arc set: ED + DC + DB + CA + DG + GF + FH = 4 + 2 + 2 + 2 + 3 + 2 + 3 = 18. The total length of the minimum spanning tree is 18 units.
  • #14: Note that you will get the identical total of 18 units no matter which node you choose as the initial node (tr y it yourself). There is more than one spanning tree that gives this same result, however. We know this because of the arbitrary choice we made in solving the 3rd node. The solution method for the minimum spanning tree problem is an example of a greedy algorithm. A greedy algorithm does whatever is best at the current step, without ever considering what the impact might be on the overall problem. This is usually a bad idea in optimization because it leads to a solution that is less than optimal over all. However, just choosing the closest unsolved nodes leads to an overall optimum solution in thisspecial case. The algorithm for a maximum spanning tree is obvious: simply choose the longest solved-to-unsolved node connection at each step. You might want a maximum spanning tree in a case where profit is involved, for example, choosing television cable routings to connect a set of locations. The extension to directed graphs is also straightforward: you can only select from among arcs that connect in the direction that you are working (either away from the initial node, or towards the initial node).
  • #34: The longest we`ve had a child stay so far is nine months. The shortest was one night. ... Sometimes it`s just a misunderstanding, and the child can get back home, ... It`s very hard. But it`s the most rewarding thing I`ve ever done. They tell you in training to love the kids like they`re your own. But you know you have to love them enough to let them go.- Michael StewartView more Michael Stewart Quotes