Question: 6. Two students and their teacher each wrote algorithms for the same problem. They tested the three algorithms with two sets of data as shown

6. Two students and their teacher each wrote algorithms for the same problem. They tested the three algorithms with two sets of data as shown below, Case 1: n = 10 Run-time for student 1:1 Run-time for student 2: 1/100 Run-time for teacher: 1/1000 Case 2: n = 100 Run-time for student 1:10 Run-time for student 2:1 Run-time for teacher: 1 What is the efficiency for each algorithm? Which is the best? Please explain your answer with calculating the efficiency and big-O notation analysis. (6pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
