SlideShare uma empresa Scribd logo
1 de 33
MINIMUM SPANNING A Networking Model Report for DPA 702  QUANTITATIVE METHODS OF RESEARCH By: ALONA M. SALVACebu Technological University
Topics ,[object Object]
MST Algorithms
Kruskal
Reverse Delete
Prim
Brief History
Importance,[object Object]
Networking Basics A network is an arrangement of paths connected at various points, through which items move. Introduction to Management Science, 9thed, Bernard W. Taylor III, 2006 Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitions & Networking Basics 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.  Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitions & Networking Basics connected 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, 2010 http://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, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitions 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.  Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
Definitions flow 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, 2010 http://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 rules Cycle- the nodes are connected by more than one edge. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://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, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
What is an MST Algorithm An MST algorithm is a way to show the shortest distance There are many different algorithms: ,[object Object]
Reverse Delete
PrimIntroduction to Management Science, 9thed, Bernard W. Taylor III, 2006
KRUSKAL’S ALGORITHM Pick out the smallest edges Repeat Step 1 as long as the edges selected does not create a cycle When all nodes have been connected, you are done http://www.slideshare.net/zhaokatherine/minimum-spanning-tree
REVERSE-DELETE ALGORITHM This is the opposite of Kruskal’s algorithm Start with all edges Delete the longest edge Continue deleting longest edges as long as all nodes are connected and no cycles are formed http://www.slideshare.net/zhaokatherine/minimum-spanning-tree
PRIM’S ALGORITHM Pick out a nod Pick out the shortest edge that is connected to your tree so far, as long as it doesn’t create a cycle Continue this until all nodes are covered http://www.slideshare.net/zhaokatherine/minimum-spanning-tree
17 i a b h c d e f g 8 7 9 4 2 11 14 4 6 7 10 8 2 1 The execution of Kruskal's algorithm (Moderate part) ,[object Object]
The edge under consideration at each step is shown with a red weight number.,[object Object]
19 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
20 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
21 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
22 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
23 Prim'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        }
24 Prim's algorithm MST_PRIM(G,w,r) 1	for each u in Q do key[u]:=∞ parent[u]:=NIL 4  key[r]:=0; parent[r]=NIL; 5	QV[Q] 6	while Q!={} do 7		u:=EXTRACT_MIN(Q); if parent[u]Nil print (u, parent[u]) 8		for each v in Adj[u] do 9			if v in Q and w(u,v)<key[v] 10			then	parent[v]:=u 11				key[v]:=w(u,v)
25 ,[object Object]
Q is a priority queue, holding all vertices that are not in the tree now.

Mais conteúdo relacionado

Mais procurados

GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)Madhu Bala
 
Prims and kruskal algorithms
Prims and kruskal algorithmsPrims and kruskal algorithms
Prims and kruskal algorithmsSaga Valsalan
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithmsana younas
 
Kruskal & Prim's Algorithm
Kruskal & Prim's AlgorithmKruskal & Prim's Algorithm
Kruskal & Prim's AlgorithmIfad Rahman
 
Knapsack problem using dynamic programming
Knapsack problem using dynamic programmingKnapsack problem using dynamic programming
Knapsack problem using dynamic programmingkhush_boo31
 
Prim Algorithm and kruskal algorithm
Prim Algorithm and kruskal algorithmPrim Algorithm and kruskal algorithm
Prim Algorithm and kruskal algorithmAcad
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applicationsTech_MX
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithmsRajendran
 
Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithmmansab MIRZA
 
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra Sahil Kumar
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentationSubid Biswas
 

Mais procurados (20)

Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
 
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
 
Prims and kruskal algorithms
Prims and kruskal algorithmsPrims and kruskal algorithms
Prims and kruskal algorithms
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
 
Kruskal & Prim's Algorithm
Kruskal & Prim's AlgorithmKruskal & Prim's Algorithm
Kruskal & Prim's Algorithm
 
Kruskal Algorithm
Kruskal AlgorithmKruskal Algorithm
Kruskal Algorithm
 
Knapsack problem using dynamic programming
Knapsack problem using dynamic programmingKnapsack problem using dynamic programming
Knapsack problem using dynamic programming
 
Prim Algorithm and kruskal algorithm
Prim Algorithm and kruskal algorithmPrim Algorithm and kruskal algorithm
Prim Algorithm and kruskal algorithm
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applications
 
Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
Greedy Algorihm
Greedy AlgorihmGreedy Algorihm
Greedy Algorihm
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 
Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithm
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 
N queen problem
N queen problemN queen problem
N queen problem
 
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
 
Spanning trees
Spanning treesSpanning trees
Spanning trees
 
Graph algorithm
Graph algorithmGraph algorithm
Graph algorithm
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
 

Destaque

Minimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumiMinimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumiIbrahim Alfayoumi
 
Prim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treePrim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treeoneous
 
KRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitraKRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitraguest1f4fb3
 
Quantitative Analysis for Management, Tenth Edition
Quantitative Analysis for Management, Tenth EditionQuantitative Analysis for Management, Tenth Edition
Quantitative Analysis for Management, Tenth Editionwilmeg
 
Graph problem & lp formulation
Graph problem & lp formulationGraph problem & lp formulation
Graph problem & lp formulationDharmesh Tank
 
5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de prim5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de primADRIANA NIETO
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree ProtocolManoj Gharate
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data StructureAnuj Modi
 
Operations research - an overview
Operations research -  an overviewOperations research -  an overview
Operations research - an overviewJoseph Konnully
 
Max flow min cut
Max flow min cutMax flow min cut
Max flow min cutMayank Garg
 
minimum spanning trees Algorithm
minimum spanning trees Algorithm minimum spanning trees Algorithm
minimum spanning trees Algorithm sachin varun
 
Data structures and algorithms lab7
Data structures and algorithms lab7Data structures and algorithms lab7
Data structures and algorithms lab7Bianca Teşilă
 
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...Francisco Pérez
 
Taylor mgmt science10-tif_01
Taylor mgmt science10-tif_01Taylor mgmt science10-tif_01
Taylor mgmt science10-tif_01D'Jhonna Jones
 

Destaque (20)

Minimum spanning Tree
Minimum spanning TreeMinimum spanning Tree
Minimum spanning Tree
 
Minimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumiMinimum spanning tree algorithms by ibrahim_alfayoumi
Minimum spanning tree algorithms by ibrahim_alfayoumi
 
Prim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning treePrim's Algorithm on minimum spanning tree
Prim's Algorithm on minimum spanning tree
 
KRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitraKRUSKAL'S algorithm from chaitra
KRUSKAL'S algorithm from chaitra
 
Quantitative Analysis for Management, Tenth Edition
Quantitative Analysis for Management, Tenth EditionQuantitative Analysis for Management, Tenth Edition
Quantitative Analysis for Management, Tenth Edition
 
Graph problem & lp formulation
Graph problem & lp formulationGraph problem & lp formulation
Graph problem & lp formulation
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de prim5.3 arbol de expansión minima algoritmo de prim
5.3 arbol de expansión minima algoritmo de prim
 
Operations research
Operations researchOperations research
Operations research
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
 
Graphs In Data Structure
Graphs In Data StructureGraphs In Data Structure
Graphs In Data Structure
 
Operations research - an overview
Operations research -  an overviewOperations research -  an overview
Operations research - an overview
 
Max flow min cut
Max flow min cutMax flow min cut
Max flow min cut
 
Normalization
NormalizationNormalization
Normalization
 
minimum spanning trees Algorithm
minimum spanning trees Algorithm minimum spanning trees Algorithm
minimum spanning trees Algorithm
 
Linkers
LinkersLinkers
Linkers
 
Data structures and algorithms lab7
Data structures and algorithms lab7Data structures and algorithms lab7
Data structures and algorithms lab7
 
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
Algoritmos para el problema de árbol de expansión mínima robusto con datos in...
 
Taylor mgmt science10-tif_01
Taylor mgmt science10-tif_01Taylor mgmt science10-tif_01
Taylor mgmt science10-tif_01
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
 

Semelhante a My presentation minimum spanning tree

APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...KUSHDHIRRA2111026030
 
Network and Tree in Graph Theory
Network and Tree in Graph TheoryNetwork and Tree in Graph Theory
Network and Tree in Graph TheoryRabin BK
 
Mit15 082 jf10_lec01
Mit15 082 jf10_lec01Mit15 082 jf10_lec01
Mit15 082 jf10_lec01Saad Liaqat
 
Timing¬Driven Variation¬Aware NonuniformClock Mesh Synthesis
Timing¬Driven Variation¬Aware NonuniformClock Mesh SynthesisTiming¬Driven Variation¬Aware NonuniformClock Mesh Synthesis
Timing¬Driven Variation¬Aware NonuniformClock Mesh SynthesisAlona Gradman
 
ABAQUS LEC.ppt
ABAQUS LEC.pptABAQUS LEC.ppt
ABAQUS LEC.pptAdalImtiaz
 
Algorithms explained
Algorithms explainedAlgorithms explained
Algorithms explainedPIYUSH Dubey
 
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHMDATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHMABIRAMIS87
 
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVLSICS Design
 
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVLSICS Design
 
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVLSICS Design
 
Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Naishil Shah
 
Ram minimum spanning tree
Ram   minimum spanning treeRam   minimum spanning tree
Ram minimum spanning treeRama Prasath A
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning TreeBalamurugan M
 
Exploratory social network analysis with pajek
Exploratory social network analysis with pajekExploratory social network analysis with pajek
Exploratory social network analysis with pajekTHomas Plotkowiak
 
Metal Detector Project
Metal Detector ProjectMetal Detector Project
Metal Detector ProjectDanish Bangash
 

Semelhante a My presentation minimum spanning tree (20)

Network flow
Network flowNetwork flow
Network flow
 
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
 
Network and Tree in Graph Theory
Network and Tree in Graph TheoryNetwork and Tree in Graph Theory
Network and Tree in Graph Theory
 
Network analysis
Network analysisNetwork analysis
Network analysis
 
Mit15 082 jf10_lec01
Mit15 082 jf10_lec01Mit15 082 jf10_lec01
Mit15 082 jf10_lec01
 
Timing¬Driven Variation¬Aware NonuniformClock Mesh Synthesis
Timing¬Driven Variation¬Aware NonuniformClock Mesh SynthesisTiming¬Driven Variation¬Aware NonuniformClock Mesh Synthesis
Timing¬Driven Variation¬Aware NonuniformClock Mesh Synthesis
 
OR II - M3.pptx
OR II - M3.pptxOR II - M3.pptx
OR II - M3.pptx
 
8_MST_pptx.pptx
8_MST_pptx.pptx8_MST_pptx.pptx
8_MST_pptx.pptx
 
ABAQUS LEC.ppt
ABAQUS LEC.pptABAQUS LEC.ppt
ABAQUS LEC.ppt
 
Algorithms explained
Algorithms explainedAlgorithms explained
Algorithms explained
 
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHMDATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
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 CIRCUITSVOLTAGE 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
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVOLTAGE 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
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITSVOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
VOLTAGE STACKING FOR SIMPLIFYING POWER MANAGEMENT IN ASYNCHRONOUS CIRCUITS
 
eeca
eecaeeca
eeca
 
Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3
 
Ram minimum spanning tree
Ram   minimum spanning treeRam   minimum spanning tree
Ram minimum spanning tree
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning Tree
 
Exploratory social network analysis with pajek
Exploratory social network analysis with pajekExploratory social network analysis with pajek
Exploratory social network analysis with pajek
 
Metal Detector Project
Metal Detector ProjectMetal Detector Project
Metal Detector Project
 

Mais de Alona Salva

1.2 theories of nationalism
1.2 theories of nationalism1.2 theories of nationalism
1.2 theories of nationalismAlona Salva
 
1.1 what is nationalism
1.1 what is nationalism1.1 what is nationalism
1.1 what is nationalismAlona Salva
 
Political science part xi
Political science part xiPolitical science part xi
Political science part xiAlona Salva
 
Political science part vii
Political science part viiPolitical science part vii
Political science part viiAlona Salva
 
Political science part viii
Political science part viiiPolitical science part viii
Political science part viiiAlona Salva
 
Political science part ix
Political science part ixPolitical science part ix
Political science part ixAlona Salva
 
Political science part x
Political science part xPolitical science part x
Political science part xAlona Salva
 
Process of research
Process of researchProcess of research
Process of researchAlona Salva
 
Political science part iii
Political science part iiiPolitical science part iii
Political science part iiiAlona Salva
 
Political science part ii
Political science part iiPolitical science part ii
Political science part iiAlona Salva
 
Political science part i
Political science part iPolitical science part i
Political science part iAlona Salva
 
Vienna convention on consular relations
Vienna convention on consular relationsVienna convention on consular relations
Vienna convention on consular relationsAlona Salva
 
Social theory of International Politics
Social theory of International PoliticsSocial theory of International Politics
Social theory of International PoliticsAlona Salva
 
Shortest route and mst
Shortest route and mstShortest route and mst
Shortest route and mstAlona Salva
 

Mais de Alona Salva (18)

1.2 theories of nationalism
1.2 theories of nationalism1.2 theories of nationalism
1.2 theories of nationalism
 
1.1 what is nationalism
1.1 what is nationalism1.1 what is nationalism
1.1 what is nationalism
 
Political science part xi
Political science part xiPolitical science part xi
Political science part xi
 
Does God Exist
Does God ExistDoes God Exist
Does God Exist
 
Political science part vii
Political science part viiPolitical science part vii
Political science part vii
 
Political science part viii
Political science part viiiPolitical science part viii
Political science part viii
 
Political science part ix
Political science part ixPolitical science part ix
Political science part ix
 
Political science part x
Political science part xPolitical science part x
Political science part x
 
National budget
National budgetNational budget
National budget
 
Process of research
Process of researchProcess of research
Process of research
 
Political science part iii
Political science part iiiPolitical science part iii
Political science part iii
 
Political science part ii
Political science part iiPolitical science part ii
Political science part ii
 
Political science part i
Political science part iPolitical science part i
Political science part i
 
Vienna convention on consular relations
Vienna convention on consular relationsVienna convention on consular relations
Vienna convention on consular relations
 
Social theory of International Politics
Social theory of International PoliticsSocial theory of International Politics
Social theory of International Politics
 
Shortest route and mst
Shortest route and mstShortest route and mst
Shortest route and mst
 
S R P
S R PS R P
S R P
 
F E R P A
F E  R P AF E  R P A
F E R P A
 

Último

Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...meghakumariji156
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1kcpayne
 
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxQSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxDitasDelaCruz
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityEric T. Tung
 
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAIGetting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAITim Wilson
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfAdmir Softic
 
Cannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannaBusinessPlans
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon investment
 
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSDurg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSkajalroy875762
 
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...ssuserf63bd7
 
Arti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfArti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfwill854175
 
Pre Engineered Building Manufacturers Hyderabad.pptx
Pre Engineered  Building Manufacturers Hyderabad.pptxPre Engineered  Building Manufacturers Hyderabad.pptx
Pre Engineered Building Manufacturers Hyderabad.pptxRoofing Contractor
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwaitdaisycvs
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingNauman Safdar
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSpanmisemningshen123
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistanvineshkumarsajnani12
 
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Timegargpaaro
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Adnet Communications
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 MonthsIndeedSEO
 

Último (20)

Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptxQSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
QSM Chap 10 Service Culture in Tourism and Hospitality Industry.pptx
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAIGetting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
Getting Real with AI - Columbus DAW - May 2024 - Nick Woo from AlignAI
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
Cannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 Updated
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTSDurg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
Durg CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN durg ESCORTS
 
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
 
Arti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfArti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdf
 
Pre Engineered Building Manufacturers Hyderabad.pptx
Pre Engineered  Building Manufacturers Hyderabad.pptxPre Engineered  Building Manufacturers Hyderabad.pptx
Pre Engineered Building Manufacturers Hyderabad.pptx
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
 
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 

My presentation minimum spanning tree

  • 1. MINIMUM SPANNING A Networking Model Report for DPA 702 QUANTITATIVE METHODS OF RESEARCH By: ALONA M. SALVACebu Technological University
  • 2.
  • 8.
  • 9. Networking Basics A network is an arrangement of paths connected at various points, through which items move. Introduction to Management Science, 9thed, Bernard W. Taylor III, 2006 Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 10. Definitions & Networking Basics 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. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 11. Definitions & Networking Basics connected 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, 2010 http://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, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 13. Definitions 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. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 14. Definitions flow 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, 2010 http://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 rules Cycle- the nodes are connected by more than one edge. Practical Optimization: A Gentle Introduction, John W. Chinneck, 2010 http://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, 2010 http://www.sce.carleton.ca/faculty/chinneck/po.html
  • 18.
  • 20. PrimIntroduction to Management Science, 9thed, Bernard W. Taylor III, 2006
  • 21. KRUSKAL’S ALGORITHM Pick out the smallest edges Repeat Step 1 as long as the edges selected does not create a cycle When all nodes have been connected, you are done http://www.slideshare.net/zhaokatherine/minimum-spanning-tree
  • 22. REVERSE-DELETE ALGORITHM This is the opposite of Kruskal’s algorithm Start with all edges Delete the longest edge Continue deleting longest edges as long as all nodes are connected and no cycles are formed http://www.slideshare.net/zhaokatherine/minimum-spanning-tree
  • 23. PRIM’S ALGORITHM Pick out a nod Pick out the shortest edge that is connected to your tree so far, as long as it doesn’t create a cycle Continue this until all nodes are covered http://www.slideshare.net/zhaokatherine/minimum-spanning-tree
  • 24.
  • 25.
  • 26. 19 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
  • 27. 20 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
  • 28. 21 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
  • 29. 22 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
  • 30. 23 Prim'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. 24 Prim's algorithm MST_PRIM(G,w,r) 1 for each u in Q do key[u]:=∞ parent[u]:=NIL 4 key[r]:=0; parent[r]=NIL; 5 QV[Q] 6 while Q!={} do 7 u:=EXTRACT_MIN(Q); if parent[u]Nil print (u, parent[u]) 8 for each v in Adj[u] do 9 if v in Q and w(u,v)<key[v] 10 then parent[v]:=u 11 key[v]:=w(u,v)
  • 32.
  • 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.
  • 38. 27 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
  • 39. 28 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
  • 40. 29 i i a b h c d e f g a b h c d e f g 8 7 8 7 9 9 4 4 2 2 11 11 14 14 4 4 6 7 6 7 10 10 8 8 2 1 2 1
  • 41. 30 i a b h c d e f g 8 7 9 4 2 11 14 4 6 7 10 8 2 1 Bottleneck 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.
  • 43.
  • 44. Why we like MST’s MST’s are fun to work with It helps us find the shortest route “The shortest distance between two people is a sMILE.”

Notas do Editor

  1. 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.
  2. 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.
  3. Flow:Wireless networksNetwork of possible cable TV paths
  4. 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.
  5. It is sometimes important to know whether a graph is connected and there are efficient computer algorithms for checking this.
  6. tree: a connected graph having no cycles. Some examples are shown in Figure 8.2(a) .
  7. 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).
  8. 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.
  9. 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.
  10. 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.
  11. 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).
  12. 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