Rules of Dijkstra’s game - Deepstash

Rules of Dijkstra’s game

The abstracted rules are as follows: 

  • Every time that we set out to visit a new node, we will choose the node with the smallest known distance/cost to visit first. 
  • Once we’ve moved to the node we’re going to visit, we will check each of its neighboring nodes. 
  • For each neighboring Node, we’ll calculate the Distance/Cost by summing the cost of the edges that lead to the Node we’re checking.
  • Finally, if the distance/cost to a node is less than a known distance, we’ll update the shortest distance that we have on file for that vertex. 

3

3 reads

CURATED FROM

IDEAS CURATED BY

joshuarobert

Special educational needs teacher

The idea is part of this collection:

Machine Learning With Google

Learn more about computerscience with this collection

Understanding machine learning models

Improving data analysis and decision-making

How Google uses logic in machine learning

Related collections

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates