Cutoff generator for the Luby sequence.
More...
#include <gecode/search.hh>
|
| | CutoffLuby (unsigned long long int scale) |
| | Constructor.
|
| virtual unsigned long long int | operator() (void) const |
| | Return the current cutoff value.
|
| virtual unsigned long long int | operator++ (void) |
| | Increment and return the next cutoff value.
|
| | Cutoff (void) |
| | Default constructor.
|
| virtual | ~Cutoff (void) |
| | Destructor.
|
|
| static unsigned long long int | log (unsigned long long int i) |
| | Compute binary logarithm of i.
|
| static unsigned long long int | luby (unsigned long long int i) |
| | Compute Luby number for step i.
|
|
| unsigned long long int | i |
| | Iteration number.
|
| unsigned long long int | scale |
| | Scale factor.
|
|
| static const unsigned long long int | n_start = 63U |
| | Number of pre-computed luby values.
|
| static unsigned long int | start [n_start] |
| | Precomputed luby-values.
|
Cutoff generator for the Luby sequence.
Definition at line 566 of file search.hh.
◆ CutoffLuby()
| Gecode::Search::CutoffLuby::CutoffLuby |
( |
unsigned long long int | scale | ) |
|
|
inline |
◆ log()
| unsigned long long int Gecode::Search::CutoffLuby::log |
( |
unsigned long long int | i | ) |
|
|
inlinestaticprotected |
Compute binary logarithm of i.
Definition at line 60 of file cutoff.hpp.
◆ luby()
| unsigned long long int Gecode::Search::CutoffLuby::luby |
( |
unsigned long long int | i | ) |
|
|
inlinestaticprotected |
Compute Luby number for step i.
Definition at line 68 of file cutoff.hpp.
◆ operator()()
| virtual unsigned long long int Gecode::Search::CutoffLuby::operator() |
( |
void | | ) |
const |
|
virtual |
◆ operator++()
| virtual unsigned long long int Gecode::Search::CutoffLuby::operator++ |
( |
void | | ) |
|
|
virtual |
| unsigned long long int Gecode::Search::CutoffLuby::i |
|
protected |
◆ scale
| unsigned long long int Gecode::Search::CutoffLuby::scale |
|
protected |
◆ n_start
| const unsigned long long int Gecode::Search::CutoffLuby::n_start = 63U |
|
staticprotected |
Number of pre-computed luby values.
Definition at line 573 of file search.hh.
◆ start
| unsigned long int Gecode::Search::CutoffLuby::start[n_start] |
|
staticprotected |
Precomputed luby-values.
Definition at line 575 of file search.hh.
The documentation for this class was generated from the following files: