hard20 pts · first answer countsgraphsshortest-pathdijkstra
A graph where Dijkstra goes wrong
Directed edges: A → B (2), A → C (3), C → B (-2). Standard Dijkstra from A marks each node final when popped. What does it report for B, and what is correct?
Discussion 0
Join free to post in the discussion.
Related questions
- Edges in a tree with n nodesBackend Developer
- Most nodes in a binary tree of height 3Backend Developer
- What inorder traversal of a BST givesBackend Developer
- Preorder output of a small treeBackend Developer
- Traversal for freeing a whole treeBackend Developer
- Data structure for level-order traversalBackend Developer
- BST search time, typical and worstBackend Developer
- Leaves in a full binary treeBackend Developer