paint-brush
How to implement Dijkstra’s Algorithm in JavaScriptby@stll.chung
40,240 reads
40,240 reads

How to implement Dijkstra’s Algorithm in JavaScript

by Stella Chung7mAugust 9th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

I’ve been reading <a href="https://www.manning.com/books/grokking-algorithms" target="_blank">Grokking Algorithms</a>, which I recommend to anyone new to algorithms. It’s basically the introduction I wish I had a few months ago! The examples in the book are written in <a href="https://hackernoon.com/tagged/python" target="_blank">Python</a>, so I’d like to share a <a href="https://hackernoon.com/tagged/javascript" target="_blank">JavaScript</a> version of <a href="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm" target="_blank">Dijkstra’s algorithm</a>. This algorithm uses a directed, weighted graph to determine the “cheapest” path to reach a node.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - How to implement Dijkstra’s Algorithm in JavaScript
Stella Chung HackerNoon profile picture
Stella Chung

Stella Chung

@stll.chung

L O A D I N G
. . . comments & more!

About Author

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite