<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><rdf:Description rdf:about="https://repozitorij.uni-lj.si/IzpisGradiva.php?id=177565"><dc:title>Floyd–Warshall algorithm for sparse graphs</dc:title><dc:creator>Zugan,	Dani	(Avtor)
	</dc:creator><dc:creator>Požar,	Rok	(Avtor)
	</dc:creator><dc:creator>Brodnik,	Andrej	(Avtor)
	</dc:creator><dc:subject>Floyd–Warshall algorithm</dc:subject><dc:subject>all-pairs shortest paths</dc:subject><dc:subject>sparse graphs</dc:subject><dc:subject>strongly connected components</dc:subject><dc:description>The Floyd–Warshall algorithm, which uses a classic dynamic programming approach, provides a solution to the all-pairs shortest paths problem. However, for sparse graphs, iteratively applying Dijkstra’s, or some other similar algorithm from each node, often proves to be more efficient. We introduce a novel technique based on a structural decomposition of the input graph into strongly connected components, allowing us to exploit the disconnectedness of the graph by avoiding redundant relaxation attempts on nodes that are not reachable from the source component. Using an empirical evaluation, where execution time is measured, we demonstrate that our approach outperforms existing alternatives on disconnected graphs.</dc:description><dc:date>2025</dc:date><dc:date>2025-12-24 09:00:39</dc:date><dc:type>Neznano</dc:type><dc:identifier>177565</dc:identifier><dc:language>sl</dc:language></rdf:Description></rdf:RDF>
