【 在 ooolinux 的大作中提到: 】
: 实际上还是有点抽象的,不像图形动画演示那么清晰的
: --发自 ismth(丝滑版)
不要钱的gpt-oss随手写的,双向边权重显示有重叠,懒得改了,凑合看
prompt:
Create an interactive HTML illustrating the Floyd–Warshall algorithm for
finding shortest paths in a directed weighted graph with nonnegative edge
weights.
The page should include Start/Pause/Prev/Next/Reset buttons, and a speed slider.
The user enters an integer V, 5 <= V <= 10. The page generates the edges of a
graph with V vertices randomly, then runs the Floyd–Warshall algorithm.
--
FROM 116.230.17.*
附件(18.4KB) Floyd-Warshall-gptosscloud.html