Empirical
|
This file provides code to build NK-based algorithms. More...
#include <array>
#include "../base/vector.h"
#include "../tools/BitVector.h"
#include "../tools/math.h"
#include "../tools/memo_function.h"
#include "../tools/Random.h"
Go to the source code of this file.
Classes | |
class | emp::NKLandscape |
class | emp::NKLandscapeMemo |
Namespaces | |
emp | |
If we are in emscripten, make sure to include the header. | |
This file provides code to build NK-based algorithms.
Two version of landscapes are provided. NKLandscape pre-calculates the entire landscape, for easy lookup. NKLandscapeMemo does lazy evaluation, memorizing values when they're first used. NKLandscape is faster, but goes up in memory size exponentially with K. NKLandscapeMemo is slightly slower, but can handle arbitrarily large landscapes.