ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ParallelShortestPaths.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*---------------------- File ParallelShortestPaths.h ----------------------*/
3/*--------------------------------------------------------------------------*/
96/*--------------------------------------------------------------------------*/
97/*----------------------------- DEFINITIONS --------------------------------*/
98/*--------------------------------------------------------------------------*/
99
100#ifndef __ADS_ParallelShortestPaths
101 #define __ADS_ParallelShortestPaths
102/* self-identification: #endif constant */
103
104/*--------------------------------------------------------------------------*/
105/*------------------------------ INCLUDES ----------------------------------*/
106/*--------------------------------------------------------------------------*/
107
108#include "ADS/Contract.h"
109#include "ADS/graph/Graph.h"
113
114#include <algorithm>
115#include <atomic>
116#include <cstddef>
117#include <cstdint>
118#include <vector>
119
120/*--------------------------------------------------------------------------*/
121/*--------------------------- NAMESPACE ------------------------------------*/
122/*--------------------------------------------------------------------------*/
123
124namespace ADS
125{
126
194template< Executor E , Graph G >
195[[nodiscard]] std::vector< typename G::Weight >
196deltaStepping( E & ex , const G & g , int s , typename G::Weight delta );
197
227template< Executor E , Graph G >
228[[nodiscard]] std::vector< typename G::Weight >
229rhoStepping( E & ex , const G & g , int s ,
230 std::size_t rho = std::size_t( 1 ) << 20 );
231
232/*--------------------------------------------------------------------------*/
233
234} // end( namespace ADS )
235
236/*--------------------------------------------------------------------------*/
237/*-------------------------- IMPLEMENTATION --------------------------------*/
238/*--------------------------------------------------------------------------*/
239
240#include "ADS/parallel/impl/ParallelShortestPaths.tpp"
241
242/*--------------------------------------------------------------------------*/
243
244#endif /* ParallelShortestPaths.h included */
245
246/*--------------------------------------------------------------------------*/
247/*-------------------- End File ParallelShortestPaths.h --------------------*/
248/*--------------------------------------------------------------------------*/
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The layer of execution of the parallel algorithms of ADS, beyond the book: an executor runs the calls...
The shortest paths of chapter 11 from a node of an oriented GRAPH whose edges have a cost [see Grap...
A static GRAPH for the engineered algorithms, beyond the book [see Graph.h]: the compressed sparse ro...
The GRAPH of chapter 9 and its realizations.
std::vector< typename G::Weight > rhoStepping(E &ex, const G &g, int s, std::size_t rho=std::size_t(1)<< 20)
the distances from by the -stepping of Dong, Gu, Sun and Zhang, infinity() for the nodes not reached...
std::vector< typename G::Weight > deltaStepping(E &ex, const G &g, int s, typename G::Weight delta)
the distances from by the -stepping of Meyer and Sanders, infinity() for the nodes not reached and f...
Definition ADT.h:96