ADS
Algorithms and Data Structures
Toggle main menu visibility
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
"
64
#include "
ADS/algorithm/MasterTheorem.h
"
65
66
#include <cmath>
67
#include <utility>
68
#include <vector>
69
70
/*--------------------------------------------------------------------------*/
71
/*--------------------------- NAMESPACE ------------------------------------*/
72
/*--------------------------------------------------------------------------*/
73
74
namespace
ADS
75
{
76
100
inline
double
101
akraBazziExponent
(
const
std::vector< std::pair< double , double > > & ab );
102
125
inline
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
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
MasterTheorem.h
The solutions of the recurrences of section 2.9, as orders of growth [see Growth]:
ADS::akraBazziExponent
double akraBazziExponent(const std::vector< std::pair< double, double > > &ab)
the exponent of Akra and Bazzi of , the root of , the terms given as
ADS::akraBazzi
Growth akraBazzi(const std::vector< std::pair< double, double > > &ab, double beta, double k=0)
the order of with
ADS
Definition
ADT.h:96
ADS::Growth
the order , and whether it is only an upper bound
Definition
MasterTheorem.h:81
ADS
algorithm
AkraBazzi.h
Generated by
1.17.0