Question: new ans diffrent than the one that is already in chegg, please use excel Question 8: You are given two programs for sorting arrays of
Question 8: You are given two programs for sorting arrays of numbers: Sortland Sort2. Given an array of size n, Sort1 runs in 5 nsteps, while Sort2 runs in 40 n log2(n) steps. Use a graphing tool (such as Excel) to determine precisely for which values of n Sort1 is faster than Sort2. Include in your paper a table and/or a plot so as to fully justify your answer. Which program would you choose? (4 marks) I Question 8: You are given two programs for sorting arrays of numbers: Sortland Sort2. Given an array of size n, Sort1 runs in 5 nsteps, while Sort2 runs in 40 n log2(n) steps. Use a graphing tool (such as Excel) to determine precisely for which values of n Sort1 is faster than Sort2. Include in your paper a table and/or a plot so as to fully justify your answer. Which program would you choose? (4 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
