Computer Science Intermediate ⏱ 15 min

Dijkstra's Shortest Path & Priority Queue Relaxation

Relax weighted graph edges from a source vertex using a binary min-heap priority queue.

Live Functional Response Graph

Real-time parametric response curve updated as you adjust the controls.

Scientific Explanation & Mathematical Model

d[v] = min(d[v], d[u] + w(u,v)), O((|V| + |E|) log₂ |V|)

Variables & Units: Greedy settled-set extraction is optimal whenever all edge weights w(u,v) ≥ 0.

Assumptions & Limitations: Non-negative directed/undirected weighted graph.

Worked Numerical Example: For |V| = 20 and degree 4 (|E| = 80): binary heap performs ~518 operations.

Guided Inquiry & Challenge Mode

🎯 Challenge Goal:

Set Vertices |V| above its midpoint while keeping Avg Out-Degree below its midpoint to unlock the target state.

In Progress...

Knowledge Check

How does changing Vertices |V| govern the output in d[v] = min(d[v]?