ADS
Algorithms and Data Structures
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
64namespace ADS
65{
66
84template< class T = std::uint64_t >
85T 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/*--------------------------------------------------------------------------*/
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
T catalan(int n)
the number of Catalan, the binary trees of nodes
Definition ADT.h:96