Question: please do it in python and post the scrnshoot of code and output Exercise-2: Code and analyze (time complexity algorithm analysis) to find maximum and

please do it in python and post the scrnshoot of code and output

Exercise-2:

Code and analyze (time complexity algorithm analysis) to find maximum and minimum element from a list (or an array). Test it with 1000 random elements and 10,000 random elements. Also, calculate the actual CPU time it took find the minimum and maximum elements.

# Attach screenshots of the program and results # Explain your understanding about the time complexity for finding minimum element. # Explain your understanding about the time complexity for finding maximum element. # CPU time to find minimum in 1000 and 10000 elements. # CPU time to find maximum in 1000 and 10000 elements.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!