ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
AkraBazzi.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*/
2/*---------------------------- File AkraBazzi.h ----------------------------*/
3/*--------------------------------------------------------------------------*/
51/*--------------------------------------------------------------------------*/
52/*----------------------------- DEFINITIONS --------------------------------*/
53/*--------------------------------------------------------------------------*/
54
55#ifndef __ADS_AkraBazzi
56 #define __ADS_AkraBazzi
57/* self-identification: #endif constant */
58
59/*--------------------------------------------------------------------------*/
60/*------------------------------ INCLUDES ----------------------------------*/
61/*--------------------------------------------------------------------------*/
62
63#include "ADS/Contract.h"
65
66#include <cmath>
67#include <utility>
68#include <vector>
69
70/*--------------------------------------------------------------------------*/
71/*--------------------------- NAMESPACE ------------------------------------*/
72/*--------------------------------------------------------------------------*/
73
74namespace ADS
75{
76
100inline double
101akraBazziExponent( const std::vector< std::pair< double , double > > & ab );
102
125inline Growth akraBazzi( const std::vector< std::pair< double ,
126 double > > & ab ,
127 double beta , double k = 0 );
128
129/*--------------------------------------------------------------------------*/
130
131} // end( namespace ADS )
132
133/*--------------------------------------------------------------------------*/
134/*-------------------------- IMPLEMENTATION --------------------------------*/
135/*--------------------------------------------------------------------------*/
136
137#include "ADS/algorithm/impl/AkraBazzi.tpp"
138
139/*--------------------------------------------------------------------------*/
140
141#endif /* AkraBazzi.h included */
142
143/*--------------------------------------------------------------------------*/
144/*-------------------------- End File AkraBazzi.h --------------------------*/
145/*--------------------------------------------------------------------------*/
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The solutions of the recurrences of section 2.9, as orders of growth [see Growth]:
double akraBazziExponent(const std::vector< std::pair< double, double > > &ab)
the exponent of Akra and Bazzi of , the root of , the terms given as
Growth akraBazzi(const std::vector< std::pair< double, double > > &ab, double beta, double k=0)
the order of with
Definition ADT.h:96
the order , and whether it is only an upper bound
Definition MasterTheorem.h:81