O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Self-Review Exercises

18.1 Fill in the blanks in each of the following statements:

a) A selection sort app would take approximately _________ times as long to run on a 128-element array as on a 32-element array.

b) The efficiency of merge sort is _________.

18.2 What key aspect of both the binary search and the merge sort accounts for the logarithmic portion of their respective Big Os?

18.3 In what sense is the insertion sort superior to the merge sort? In what sense is the merge sort superior to the insertion sort?

18.4 In the text, we say that after the merge sort splits the array into two subarrays, it then sorts these two subarrays and merges them. Why might someone be puzzled by our statement that “it then sorts these two subarrays”?

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required