ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::Growth Struct Reference

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

Detailed description

the order \( c^n n^p \log^q n ( \log \log n )^r \), and whether it is only an upper bound

Member function documentation

◆ at()

double ADS::Growth::at ( double n) const
inlinenodiscard

the value of the order at \( n \), for \( n > e \)

◆ operator<=>

std::partial_ordering operator<=> ( const Growth & a,
const Growth & b )
friend

the order of the two functions for \( n \) large: lexicographic on \( c \), \( p \), \( q \) and \( r \) (upper is not compared)

◆ operator==

bool operator== ( const Growth & a,
const Growth & b )
friend

true if the two orders are the same, i.e., if operator<=> finds them equivalent

Member data documentation

◆ c

double ADS::Growth::c = 1

the base of the exponential

◆ p

double ADS::Growth::p = 0

the power of \( n \)

◆ q

double ADS::Growth::q = 0

the power of \( \log n \)

◆ r

double ADS::Growth::r = 0

the power of \( \log \log n \)

◆ upper

bool ADS::Growth::upper = false

\( O \) rather than \( \Theta \)


The documentation for this struct was generated from the following file: