Could not load preview for this project
AI Generated Video

Dijkstra's Algorithm for Shortest Paths

D
Created December 9, 2025

About this video

Check out this video I made with revid.ai

https://www.revid.ai/view/dijkstras-algorithm-for-shortest-paths-ozQfX0I32aTjZp9Q0VkZ

Try the Create Minecraft Parkour Video

Create your own version in minutes

Video Transcript

Full text from the video

0:00

Dijkstra’s Algorithm (shortest path on a weighted graph) Purpose: Find the cheapest/shortest

0:00

path from a start vertex to another vertex. How it works (simple): Pick a starting

0:00

vertex. Give it a distance of 0. Everything else starts at ∞.

0:00

Choose the smallest distance that hasn’t been “locked in” yet. Update its neighbors

0:00

using: new distance = current distance + edge weight Lock it in and move

0:00

on. Keep repeating until you reach the target vertex. Key idea:

0:00

You slowly build the shortest path map using the smallest distances first.

Impact

240,909+ Short Videos
Created By Over 14,258+ Creators

Whether you're sharing personal experiences, teaching moments, or entertainment - we help you tell stories that go viral.

No credit card required