Question: Project Objectives: Part 1 . Implement a Naive recursive algorithm to solve the problem. Name the file Staircase _ naive.py Part 2 . Implement
Project Objectives:
Part Implement a Naive recursive algorithm to solve the problem. Name the file "Staircasenaive.py
Part Implement a dynamic programming approach using bottomup technique. Name the file "Staircasebottomuppy
Part Implement a dynamic programming approach using topdown technique memoization Name the file "Staircasetopdown.py
Provide a report discussing the differences in the runtime of the codes you have written and howwhy different they are.ReportFirstNamelastname.docx"
Instructions:
Use IDE of your choice to write the code.
Make sure your python file for each part can be executed outside IDE environment no dependency on any other file
Ensure the Python file is named exactly as defined for each part.
just one number as input is can be read from the user by the following prompt Please provided the number of stairs:" the answer should appear in a new line as The number of distinct ways to reach the top of the staircase is:
Do not write the answer to file, not needed
Do not use builtin function for sorting or finding max, etc., follow the guideline discussed in the class and related slides.
You need to measure the time it took to run each of the codes with in the code, not using bash, script, etc., use python "time.time the results of this part should appear after when you printed the distinct ways to reach the top, in a new line "Time to execute is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
