ADS
Algorithms and Data Structures
Toggle main menu visibility
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
"
110
#include "
ADS/graph/ShortestPaths.h
"
111
#include "
ADS/graph/StaticGraph.h
"
112
#include "
ADS/parallel/Executor.h
"
113
114
#include <algorithm>
115
#include <atomic>
116
#include <cstddef>
117
#include <cstdint>
118
#include <vector>
119
120
/*--------------------------------------------------------------------------*/
121
/*--------------------------- NAMESPACE ------------------------------------*/
122
/*--------------------------------------------------------------------------*/
123
124
namespace
ADS
125
{
126
194
template
< Executor E , Graph G >
195
[[nodiscard]] std::vector< typename G::Weight >
196
deltaStepping
( E & ex ,
const
G & g ,
int
s ,
typename
G::Weight delta );
197
227
template
< Executor E , Graph G >
228
[[nodiscard]] std::vector< typename G::Weight >
229
rhoStepping
( 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
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
Executor.h
The layer of execution of the parallel algorithms of ADS, beyond the book: an executor runs the calls...
ShortestPaths.h
The shortest paths of chapter 11 from a node of an oriented GRAPH whose edges have a cost [see Grap...
StaticGraph.h
A static GRAPH for the engineered algorithms, beyond the book [see Graph.h]: the compressed sparse ro...
Graph.h
The GRAPH of chapter 9 and its realizations.
ADS::rhoStepping
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...
ADS::deltaStepping
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...
ADS
Definition
ADT.h:96
ADS
parallel
ParallelShortestPaths.h
Generated by
1.17.0