|
ADS
Algorithms and Data Structures
|
the order \( c^n n^p \log^q n ( \log \log n )^r \), and whether it is only an upper bound More...
#include <ADS/algorithm/MasterTheorem.h>
Public member functions | |
| double | at (double n) const |
| the value of the order at \( n \), for \( n > e \) | |
Public attributes | |
| double | c = 1 |
| the base of the exponential | |
| double | p = 0 |
| the power of \( n \) | |
| double | q = 0 |
| the power of \( \log n \) | |
| double | r = 0 |
| the power of \( \log \log n \) | |
| bool | upper = false |
| \( O \) rather than \( \Theta \) | |
Friends | |
| std::partial_ordering | operator<=> (const Growth &a, const Growth &b) |
| the order of the two functions for \( n \) large: lexicographic on \( c \), \( p \), \( q \) and \( r \) (upper is not compared) | |
| bool | operator== (const Growth &a, const Growth &b) |
| true if the two orders are the same, i.e., if operator<=> finds them equivalent | |
the order \( c^n n^p \log^q n ( \log \log n )^r \), and whether it is only an upper bound
|
inlinenodiscard |
the value of the order at \( n \), for \( n > e \)
the order of the two functions for \( n \) large: lexicographic on \( c \), \( p \), \( q \) and \( r \) (upper is not compared)
true if the two orders are the same, i.e., if operator<=> finds them equivalent
| double ADS::Growth::c = 1 |
the base of the exponential
| double ADS::Growth::p = 0 |
the power of \( n \)
| double ADS::Growth::q = 0 |
the power of \( \log n \)
| double ADS::Growth::r = 0 |
the power of \( \log \log n \)
| bool ADS::Growth::upper = false |
\( O \) rather than \( \Theta \)