C++ Library Extensions 2022.12.09
To help learn modern C++ programming
generate_table.cpp File Reference
Include dependency graph for generate_table.cpp:

Go to the source code of this file.

Functions

auto factorial (unsigned long long n)
 
auto nPr (unsigned long long n, unsigned long long r=1)
 
auto nCr (unsigned long long n, unsigned long long r)
 
auto nCr_naive (unsigned long long n, unsigned long long r)
 
void generate_factorial_table ()
 
void generate_permutation_table (unsigned long long limit=100)
 
void generate_combination_table (unsigned long long limit=100)
 
void generate_combination_table_naive (unsigned long long limit=100)
 
void generate_table (unsigned long long permu=50, unsigned long long combi=100)
 
int main (int argc, char **argv)
 

Function Documentation

◆ factorial()

auto factorial ( unsigned long long  n)

Definition at line 34 of file generate_table.cpp.

Here is the caller graph for this function:

◆ generate_combination_table()

void generate_combination_table ( unsigned long long  limit = 100)

Definition at line 231 of file generate_table.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_combination_table_naive()

void generate_combination_table_naive ( unsigned long long  limit = 100)

Definition at line 268 of file generate_table.cpp.

Here is the call graph for this function:

◆ generate_factorial_table()

void generate_factorial_table ( )

Definition at line 170 of file generate_table.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_permutation_table()

void generate_permutation_table ( unsigned long long  limit = 100)

Definition at line 194 of file generate_table.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_table()

void generate_table ( unsigned long long  permu = 50,
unsigned long long  combi = 100 
)

Definition at line 304 of file generate_table.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 319 of file generate_table.cpp.

Here is the call graph for this function:

◆ nCr()

auto nCr ( unsigned long long  n,
unsigned long long  r 
)

Definition at line 83 of file generate_table.cpp.

Here is the caller graph for this function:

◆ nCr_naive()

auto nCr_naive ( unsigned long long  n,
unsigned long long  r 
)

Definition at line 128 of file generate_table.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nPr()

auto nPr ( unsigned long long  n,
unsigned long long  r = 1 
)

Definition at line 58 of file generate_table.cpp.

Here is the caller graph for this function: