SlideShare a Scribd company logo
1 of 24
MINIMAL- SPANNING TREE

Technique to connect all the points of a network while
  minimizing the distance between them.

Input: Fully connected graph with distances known
   between the nodes.

Output: Tree which gives minimum distance that connects
  all the nodes.




                                                    BITS Pilani, Pilani Campus
MINIMAL- SPANNING TREE

Algorithm:
1. Select any node in the network
2. Connect this node to the nearest node that minimizes
   total distance.
3. Find and connect the nearest node that is not
   connected. In case of tie, select arbitrary and proceed.
4. Repeat step 3 until all nodes are connected.




                                                   BITS Pilani, Pilani Campus
Minimal Spanning Tree-
Problem
 Launderdale Construction Company, Which is currently
 developing a luxurious housing project in Panama city
 beach, Florida.

 Melvin Launderdale, owner and president of Lauderdale
 Construction, must determine the least expensive way to
 provide water and power to each house.

 The network of the House is given in the figure.




                                                    BITS Pilani, Pilani Campus
Each number depicts- Dist ance in hundreds of feet



Problem :
                                   5           4
                   3
                               5                       7
       2
               3                       7
                       3                                   2
       3
               2
                                   3                   8
                       2                           1
           1
                   5
                                   6       6

                           4




                                                           BITS Pilani, Pilani Campus
MINIMAL- SPANNING TREE

Solution:
                                5                 4
                3
                            5                                              7
    2
            3                          7
                    3                                                          2
    3
            2
                                3                                         8
                    2                                 1
        1
                5
                                6             6

                        4




                                    BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Application of Minimal
Spanning Tree
Network design.
  – Telephone, electrical, hydraulic, TV cable, computer,
  road
Phone network design Problems-
  Business with several offices ,
  Lease phone lines to connect them up with each other,
  Phone company charges different amounts of money to
  connect different pairs of cities.
  Set of lines that connects all your offices with a minimum
  total cost.
      - Spanning tree, since if a network isn’t a tree you
  can always remove some edges and save money
                                                    BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM

A graph search algorithm that solves the single-source
  shortest path problem.

Input: fully connected graph with distances known between
  the nodes.

Output: For a source node in the graph, the algorithm finds
  the path with lowest cost between that vertex and every
  other vertex.
Can also be used for finding costs of shortest paths from a
  single vertex to a single destination


                                                   BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
DIJKSTRA ALGORITHM




                     BITS Pilani, Pilani Campus
References

1.) http://optlab-
   server.sce.carleton.ca/POAnimations2007/DijkstrasAlgo.
   html
2.) Wikipedia.org
3.) http://www.cs.princeton.edu/~rs/AlgsDS07/14MST.pdf




                                                 BITS Pilani, Pilani Campus

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Quantitative methods minimal spanning tree and dijkstra

  • 1. MINIMAL- SPANNING TREE Technique to connect all the points of a network while minimizing the distance between them. Input: Fully connected graph with distances known between the nodes. Output: Tree which gives minimum distance that connects all the nodes. BITS Pilani, Pilani Campus
  • 2. MINIMAL- SPANNING TREE Algorithm: 1. Select any node in the network 2. Connect this node to the nearest node that minimizes total distance. 3. Find and connect the nearest node that is not connected. In case of tie, select arbitrary and proceed. 4. Repeat step 3 until all nodes are connected. BITS Pilani, Pilani Campus
  • 3. Minimal Spanning Tree- Problem Launderdale Construction Company, Which is currently developing a luxurious housing project in Panama city beach, Florida. Melvin Launderdale, owner and president of Lauderdale Construction, must determine the least expensive way to provide water and power to each house. The network of the House is given in the figure. BITS Pilani, Pilani Campus
  • 4. Each number depicts- Dist ance in hundreds of feet Problem : 5 4 3 5 7 2 3 7 3 2 3 2 3 8 2 1 1 5 6 6 4 BITS Pilani, Pilani Campus
  • 5. MINIMAL- SPANNING TREE Solution: 5 4 3 5 7 2 3 7 3 2 3 2 3 8 2 1 1 5 6 6 4 BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
  • 6. Application of Minimal Spanning Tree Network design. – Telephone, electrical, hydraulic, TV cable, computer, road Phone network design Problems- Business with several offices , Lease phone lines to connect them up with each other, Phone company charges different amounts of money to connect different pairs of cities. Set of lines that connects all your offices with a minimum total cost. - Spanning tree, since if a network isn’t a tree you can always remove some edges and save money BITS Pilani, Pilani Campus
  • 7. DIJKSTRA ALGORITHM A graph search algorithm that solves the single-source shortest path problem. Input: fully connected graph with distances known between the nodes. Output: For a source node in the graph, the algorithm finds the path with lowest cost between that vertex and every other vertex. Can also be used for finding costs of shortest paths from a single vertex to a single destination BITS Pilani, Pilani Campus
  • 8. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 9. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 10. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 11. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 12. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 13. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 14. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 15. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 16. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 17. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 18. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 19. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 20. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 21. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 22. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 23. DIJKSTRA ALGORITHM BITS Pilani, Pilani Campus
  • 24. References 1.) http://optlab- server.sce.carleton.ca/POAnimations2007/DijkstrasAlgo. html 2.) Wikipedia.org 3.) http://www.cs.princeton.edu/~rs/AlgsDS07/14MST.pdf BITS Pilani, Pilani Campus

Editor's Notes

  1. Animated the example…
  2. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  3. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  4. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  5. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  6. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  7. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  8. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  9. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  10. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  11. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)
  12. Bayes theorem is used to accommodate additional data to calculate revised probabilities (posterior probabilities)