|
Download benchmarks/Algorithms/Floyd_adjacency_matrix_2Darray/problem.md from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 761 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/Floyd_adjacency_matrix_2Darray/problem.md
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Algorithms/Floyd_adjacency_matrix_2Darray/problem.md
-
curl -L -o problem.md https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Algorithms/Floyd_adjacency_matrix_2Darray/problem.md
761 Bytes
Floyd–Warshall on a Two-Dimensional Array
Problem Description
Compute all-pairs shortest-path distances by the Floyd–Warshall dynamic-programming algorithm.
Input
The function receives the graph representation, its size parameters, and the algorithm-specific working or output arrays described by its C signature.
Output
The function updates or returns the designated result structure while preserving the read-only graph representation.
Constraints
All vertices and edges are within the bounds stated by the function contract, all input graph representations are well formed, and all arithmetic stays within the stated C integer bounds.
Source
Classical Floyd graph-algorithm problem reconstructed from the verified C artifact.