Skip to content

fgallegosalido/Ackermann-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Ackermann-Program

This is a programm which computational complexity grows incredibly fast, up to the point that, for little integers, the programm has to stop due to the huge amount of execution time.

To execute the programm in Linux, just download the .c file and enter in the terminal:

$> gcc ackermann.c -o ackermann
$> ./ackermann

The programm will print numbers really fast, but ack(4,1) takes a while, and ack(4,2) will never reach a solution because it takes a ridiculous amount of time, so the OS will kill it.

This programm is more a curiosity rather than something useful, just to understand how far recursive functions can go.

NOTE: Too high limits for the function aren't useful, try little ones.

About

Example of a non-primitive recursive program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages