To see for yourself the astonishing difference in big-oh


Problem

1. How many times will the following code print out the message?

for x in range (1, 5):
for y in range (0, 10, 2):
print "I will be good"

2. To see for yourself the astonishing difference in Big-Oh values, write a function that prints out some actual values. For each number i in the list [1, 10, 50, 100, 200], print the values of i, int(i*log(i)), i2, 2i , and factorial(i). You will need to explicitly calculate the last two of these. You will also very much need to use the scroll bar in the command pane to see the results.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: To see for yourself the astonishing difference in big-oh
Reference No:- TGS02641298

Expected delivery within 24 Hours