ADS
Algorithms and Data Structures
Toggle main menu visibility
Loading...
Searching...
No Matches
Catalan.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/*----------------------------- File Catalan.h -----------------------------*/
3
/*--------------------------------------------------------------------------*/
41
/*--------------------------------------------------------------------------*/
42
/*----------------------------- DEFINITIONS --------------------------------*/
43
/*--------------------------------------------------------------------------*/
44
45
#ifndef __ADS_Catalan
46
#define __ADS_Catalan
47
/* self-identification: #endif constant */
48
49
/*--------------------------------------------------------------------------*/
50
/*------------------------------ INCLUDES ----------------------------------*/
51
/*--------------------------------------------------------------------------*/
52
53
#include "
ADS/Contract.h
"
54
55
#include <algorithm>
56
#include <cstddef>
57
#include <cstdint>
58
#include <vector>
59
60
/*--------------------------------------------------------------------------*/
61
/*--------------------------- NAMESPACE ------------------------------------*/
62
/*--------------------------------------------------------------------------*/
63
64
namespace
ADS
65
{
66
84
template
<
class
T = std::u
int
64_t >
85
T
catalan
(
int
n );
86
87
/*--------------------------------------------------------------------------*/
88
89
}
// end( namespace ADS )
90
91
/*--------------------------------------------------------------------------*/
92
/*-------------------------- IMPLEMENTATION --------------------------------*/
93
/*--------------------------------------------------------------------------*/
94
95
#include "ADS/numeric/impl/Catalan.tpp"
96
97
/*--------------------------------------------------------------------------*/
98
99
#endif
/* Catalan.h included */
100
101
/*--------------------------------------------------------------------------*/
102
/*--------------------------- End File Catalan.h ---------------------------*/
103
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
ADS::catalan
T catalan(int n)
the number of Catalan, the binary trees of nodes
ADS
Definition
ADT.h:96
ADS
numeric
Catalan.h
Generated by
1.17.0