Spanning tree

Shortest-path tree

In mathematics and computer science, a shortest-path tree rooted at a vertex v of a connected, undirected graph G is a spanning tree T of G, such that the path distance from root v to any other vertex u in T is the shortest path distance from v to u in G. In connected graphs where shortest paths are well-defined (i.e. where there are no negative-length cycles), we may construct a shortest-path tree using the following algorithm: 1. * Compute dist(u), the shortest-path distance from root v to vertex u in G using Dijkstra's algorithm or Bellman–Ford algorithm. 2. * For all non-root vertices u, we can assign to u a parent vertex pu such that pu is connected to u, and that dist(pu) + edge_dist(pu,u) = dist(u). In case multiple choices for pu exist, choose pu for which there exists a shortest path from v to pu with as few edges as possible; this tie-breaking rule is needed to prevent loops when there exist zero-length cycles. 3. * Construct the shortest-path tree using the edges between each node and its parent. The above algorithm guarantees the existence of shortest-path trees. Like minimum spanning trees, shortest-path trees in general are not unique. In graphs for which all edge weights are equal, shortest path trees coincide with breadth-first search trees. In graphs that have negative cycles, the set of shortest simple paths from v to all other vertices do not necessarily form a tree. For simple connected graphs, shortest-path trees can be used to suggest a non-linear relationship between two network centrality measures, closeness and degree. By assuming that the branches of the shortest-path trees are statistically similar for any root node in one network, one may show that the size of the branches depend only on the number of branches connected to the root vertex, i.e. to the degree of the root node. From this one deduces that the inverse of closeness, a length scale associated with each vertex, varies approximately linearly with the logarithm of degree. The relationship is not exact but it captures a correlation between closeness and degree in large number of networks constructed from real data and this success suggests that shortest-path trees can be a useful approximation in network analysis. (Wikipedia).

Shortest-path tree
Video thumbnail

Longest Simple Path - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

Find the Shortest Path - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

Longest Simple Path - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

The Shortest Way Home- An Unexpected Result

A story about how I stumbled on a very surprising result on my way home. Apparently math isn't entirely useless! Sorry about the sound :(

From playlist Some fun math videos about approximation

Video thumbnail

Networks - Shortest path algorithm

In this tutorial you learn about how to draw the shortest path between two nodes using the shortest path algorithm. This topic is taught in Queensland Maths A, Year 11 or Year 12.

From playlist Maths A / General Course, Grade 11/12, High School, Queensland, Australia

Video thumbnail

Graph Data Structure 4. Dijkstra’s Shortest Path Algorithm

This is the fourth in a series of computer science videos about the graph data structure. This is an explanation of Dijkstra’s algorithm for finding the shortest path between one vertex in a graph and another. Indeed, this explains how Dijkstra’s shortest path algorithm generates a set o

From playlist Path Finding Algorithms

Video thumbnail

Find the Shortest Path - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

All Pairs Shortest Paths - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

Graph Theory: 20. Edge Weighted Shortest Path Problem

This video explains the problem known as the edge-weighted shortest path problem. The next two videos look at an algorithm which provides a solution to the problem. --An introduction to Graph Theory by Dr. Sarada Herke. For quick videos about Math tips and useful facts, check out my othe

From playlist Graph Theory part-4

Video thumbnail

Jeff Erickson - Lecture 3 - Two-dimensional computational topology - 20/06/18

School on Low-Dimensional Geometry and Topology: Discrete and Algorithmic Aspects (http://geomschool2018.univ-mlv.fr/) Jeff Erickson (University of Illinois at Urbana-Champaign, USA) Two-dimensional computational topology - Lecture 3 Abstract: This series of lectures will describe recent

From playlist Jeff Erickson - School on Low-Dimensional Geometry and Topology: Discrete and Algorithmic Aspects

Video thumbnail

Lecture 15 - Shortest Paths

This is Lecture 15 of the CSE373 (Analysis of Algorithms) course taught by Professor Steven Skiena [http://www3.cs.stonybrook.edu/~skiena/] at Stony Brook University in 2016. The lecture slides are available at: https://www.cs.stonybrook.edu/~skiena/373/newlectures/lecture14.pdf More inf

From playlist CSE373 - Analysis of Algorithms 2016 SBU

Video thumbnail

Lecture 16 - Combinatorial Search

This is Lecture 16 of the CSE373 (Analysis of Algorithms) course taught by Professor Steven Skiena [http://www.cs.sunysb.edu/~skiena/] at Stony Brook University in 2007. The lecture slides are available at: http://www.cs.sunysb.edu/~algorith/video-lectures/2007/lecture15.pdf More informa

From playlist CSE373 - Analysis of Algorithms - 2007 SBU

Video thumbnail

Graph Theory: Shortest Paths - Oxford Mathematics 2nd Year Student Lecture

Like many Universities around the world, Oxford has gone online for lockdown. So how do our student lectures look? Let Marc Lackenby show you as he looks at paths between vertices in a graph with a view to finding the shortest route between any two vertices. Works for your Satnav for examp

From playlist Oxford Mathematics 2nd Year Student Lectures

Video thumbnail

Lecture 14 - Minimum Spanning Trees II

This is Lecture 14 of the CSE373 (Analysis of Algorithms) course taught by Professor Steven Skiena [http://www3.cs.stonybrook.edu/~skiena/] at Stony Brook University in 2016. The lecture slides are available at: https://www.cs.stonybrook.edu/~skiena/373/newlectures/lecture13.pdf More inf

From playlist CSE373 - Analysis of Algorithms 2016 SBU

Video thumbnail

Jeff Erickson - Lecture 4 - Two-dimensional computational topology - 21/06/18

School on Low-Dimensional Geometry and Topology: Discrete and Algorithmic Aspects (http://geomschool2018.univ-mlv.fr/) Jeff Erickson (University of Illinois at Urbana-Champaign, USA) Two-dimensional computational topology - Lecture 4 Abstract: This series of lectures will describe recent

From playlist Jeff Erickson - School on Low-Dimensional Geometry and Topology: Discrete and Algorithmic Aspects

Video thumbnail

Lecture 19 - Graph Algorithms

This is Lecture 19 of the COMP300E (Programming Challenges) course taught by Professor Steven Skiena [http://www.cs.sunysb.edu/~skiena/] at Hong Kong University of Science and Technology in 2009. The lecture slides are available at: http://www.algorithm.cs.sunysb.edu/programmingchallenges

From playlist COMP300E - Programming Challenges - 2009 HKUST

Video thumbnail

Find Shortest Path in Graph, Dijkstra Algorithm - python [Imagineer]

Find Shortest Path in Graph using Dijkstra Algorithm - python [Imagineer]

From playlist Get Ready for Coding Interview

Related pages

Spanning tree | Bellman–Ford algorithm | Centrality | Graph theory | Closeness centrality | Mathematics | Vertex (graph theory) | Minimum spanning tree | Dijkstra's algorithm | Degree (graph theory) | Shortest path problem | Breadth-first search