|
PBeFS
Parallel Best-First Search
|
a random worker for each generated state More...
#include <PBeFS/astar/Distribution.h>
Public Member Functions | |
| RandomDistribution (const D &, std::uint64_t seed=1) | |
| unsigned | owner (const state_t< D > &, unsigned p) const |
Static Public Member Functions | |
| static std::string | name (void) |
Static Public Attributes | |
| static constexpr bool | per_worker = true |
| true: each worker needs its own copy | |
a random worker for each generated state
The randomized strategy of Kumar, Ramesh and Rao (1988) and of Karp and Zhang (1993): a state is detected as a duplicate only if its copies happen to reach the same worker. owner() is const but changes the state of the generator: each worker must have its own copy.
|
inlineexplicit |
|
inlinestaticnodiscard |
|
inlinenodiscard |
|
staticconstexpr |
true: each worker needs its own copy