What happens when a shortest-path assumption fails?
Do two graph algorithms produce the specified reference distances and distinguish a negative edge from a reachable negative cycle?
This opens the task context in your private workspace. You review an editable plan before saving; your source, permissions, and budget are still required.
What will you examine?
Positive graph: A→B:2, A→C:5, B→C:1, B→D:4, C→D:1; source A.
Negative-edge graph: A→B:1, A→C:2, C→B:-3; source A.
Negative-cycle graph: A→B:1, B→A:-2; source A.
What does the question assume?
Finite weights, an existing source and explicitly listed neighbor vertices; heap ties need comparable labels.
Dijkstra requires nonnegative weights. Finite Bellman–Ford distances require no reachable negative cycle.
What should you compare?
Hand-derived positive distances are A:0, B:2, C:3, D:4. Both methods should be compared with this map.
The negative-edge graph has distances A:0, B:-1, C:2. The proposed Dijkstra helper rejects that input; Bellman–Ford should return the finite distances.
The reachable cycle has weight -1 and should be rejected. Retain distinct expected rejection, unexpected non-rejection, crash, timeout and missing-output cases.
What could the evidence establish?
Three fixed graphs do not establish universal correctness, performance or support for arbitrary input data.
Unreachable infinite distances need an explicit strict-JSON representation in any extension.
No qualified current predicate verifies these algorithms. An author's matching distance map remains an author observation.
Prepare, then authorize the work.
Review the question, inputs, comparison and limits; the template has no scientific result.
Prepare an editable draft, supply your own byline, title and scoped claims, and review them before saving privately.
Obtain source you may use, or implement the question yourself; select one case and attach your own paper.md in the source ZIP. Do not run submitted code on your host.
Upload opaque source bytes through your project. Record the actual archive SHA-256; an inspection of the staged file hashes is not an ingestion result.
Review and accept the current bounded ingestion quote. Only qualified isolated ingestion can resolve the source inventory for this exact version.
Then review and accept a separate quote for the one author job. Inspect the selected case's status and output, including missing or failed results; an exit code is insufficient.
Any independent predicate, model review, contribution or sharing is a separate request with its own scope, permissions and budget.
Proposed isolated job and expected output paths
Planning details for a separately authorized isolated job. Supply permitted source and review the current quote before execution.
- Job identifier
- shortest-paths-author
- Runtime
- python-science-v1 · ARM64 · Python standard library · isolated job only
- Command arguments
["python","run_pilot.py","--case","shortest-paths","--output","results.json"]- Expected output paths
- results.json
Bring source you may use.
The inspected original source remains local staging material. Its MIT/CC BY/CC0 terms are proposed, not a released license grant. Obtain permitted source or supply your own implementation. The source-version digest is not an archive digest.
Archive download unavailable. The source remains local staging material with proposed, unreleased license terms.
Inspect the staged file identities
These SHA-256 values identify inspected staging files. They do not grant access to the files or establish a permitted source archive for your version.
- cases.py
- 519571d6d45280e20bd31c73cbb24637a728c36359e61813ba8a3324294fd839
- run_pilot.py
- 609ec673bbd6a83c9795e07aa7b0c1bb70276edf06e2b9e3d1a5da16855eb3ba
- descriptions.json
- 0f5ace321125ae5a0d17802d988c0522e23b63b2774dd66d7c2b02248833381d
- prepare.py
- b492fb44ec02c4a733753e598cebddd2af177598c0dd727606c6baa191cf9ee1
- README.md
- 768e3f3ec31fd0083ca41a1bd9fba7823c54ee18ad21b0e73300e4f6c6c6133d
- MATHEMATICAL_NOTES.md
- a6e041ac742c0b0eee884b1a3a08555faf7957af553f416b761c2ed73f774284
- Staged source version digest
- b36740ef95bae6f480e7c833e97c2aceca73642984015467cff1511392086f88
The source version digest is distinct from an archive checksum. Your uploaded ZIP must have its own exact archive SHA-256.