Question: Solve in python, output into an HTML file Write a Python program to solve problem 1.1, Comparison of running times, of your textbook (aka CLRS
Solve in python, output into an HTML file


Write a Python program to solve problem 1.1, Comparison of running times, of your textbook (aka CLRS book). You may assume that there are 30 days/month and 365 days /year. In solving the problem, you may consider using 'scipy, 'numpy', 'math, or any other modules available to help solve your problem. Your output should be in an HTML text format which includes a table with your answers as shown in the textbook. You may also use any HTML library module or use simple print() or write() functions to write your own html file. Either way, you will learn how to write an html or a markdown file. However, when the HTML (markdown) file is loaded on a browser, it should display a table in a reasonably nice table format looking like the one in the textbook. Some numbers may be too big to represent in a computer word size. In such cases, you express such numbers in a string format (e.g., "3.673 x 10235") 1-1 Comparison of running times For each function f(n) and time t in the following table, determine the largest size n of a problem that can be solved in time t, assuming that the algorithm to solve the problem takes f(n) microseconds. Notes for Chapter 1 second minute hour day 1 month 1 year 1 century Ign 00 n n lgn n2 3 21 n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
