/fibonacci-tail-call-and-trampolines

Implement recursion with trampolining optimization

Primary LanguageRuby

Fibonacci implementation

This project is an attempt to optimize regular stack based recursion with trampolines

TRAMPOLINING is a functional programming concnept allowing to transform stack based recursion to iteration

Take a look at ruby/main.rb or python/main.py (or javascript/main.js, even bash/main.sh ;)) for implementation details

Getting Started

git clone cd into project

Running

# Ruby
./ruby/main.rb [num]
# Python
./python/main.py [num]
# Javascript
./javascript/main.js [num]
# Bash
./bash/main.sh [num]

Contributing

Feel free to write PR or Open Issues in case of any questions

Authors

License

This project is licensed under the MIT License

Acknowledgments