Algorithm for insertion and merge sort


Question:

Algorithm for insertion and merge sort

Suppose that we compare the insertion sort method with the merge sort method in the same computer.

For entries of size n, the classification with insertion requires 8n^2 steps, while classification with merge requires 64n*lg(n) steps. For which values of n, does insertion sort method outclass the merge sort method? Please explain.

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Algorithm for insertion and merge sort
Reference No:- TGS01936834

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)