Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/esraaj-sarkar-gupta/tower-of-hanoi

A recursive python program to solve the Tower of Hanoi Problem and an accompanying set of scripts to analyse data from the runtime of integral values of the program to observe exponentially increasing runtime.
https://github.com/esraaj-sarkar-gupta/tower-of-hanoi

Last synced: about 2 months ago
JSON representation

A recursive python program to solve the Tower of Hanoi Problem and an accompanying set of scripts to analyse data from the runtime of integral values of the program to observe exponentially increasing runtime.

Awesome Lists containing this project

README

        

This project focuses on solving the Tower of Hanoi problem and using the computation times to analyse exponential computation.
Tower_of_Hanoi.py solves the TOH problem under 0 constraints.
Time_TOH.py times TOH.py for every inetegral value of N (number of discs) and plots the data.

The data collected using Time_TOH.py was fed into function fitting programmes (https://wwww.mycurvefit) to generate an approximate function for the computation time for integral values of N.
The functions collcted, listed below were used to estimate times for higher values of N (values for which my computer is too slow and I am too impatient).