Mathcad Community Challenge September 2025: Dijkstra's algorithm-Inspired Programming Challenge
- September 1, 2025
- 9 replies
- 5600 views
This month’s challenge is a programming challenge inspired by Dijkstra’s algorithm, which finds the shortest path from a single source to all the other nodes in a network, based on weighting.
In this scenario, we will use points in a 2D plot, where the weighting is the distance between the points.

Challenge 1: Known Points
For the provided points, write a program to calculate the shortest path from the first node (5,5) to all other nodes, always choosing the shortest path from the current node.
Feel free to use Mathcad's random number generator functions to make your own points instead. You can also start from a different point of your choosing if you so desire.
Challenge 2: Graphing
Create a Chart Component or XY Plot that graphs this path.
Challenge 3: Advanced Inputs
Incorporate advanced input controls to allow the user to change quantities such as the number of points or generate new points / path.
Challenge 4: 3D
Can you write a program that performs the same calculation, but for points in 3D instead of 2D?
A Mathcad Prime 10 worksheet that was used to generate the above image has been attached to this challenge.
Find the Mathcad Community Challenge Guidelines here! Have fun!

