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

What will be an ideal response?


Both of these algorithms incorporate “halving”—somehow reducing something by half. The binary search eliminates from consideration one half of the array after each comparison. The merge sort splits the array in half each time it’s called.

Computer Science & Information Technology

You might also like to view...

Bluetooth technology can be used to create a wireless connection between the motherboard and a keyboard

Indicate whether the statement is true or false

Computer Science & Information Technology

Which is an advantage of using a web app?

a. Platform-neutral b. Designed to do many things c. Can be installed on many different devices

Computer Science & Information Technology

Which of the following is NOT included in the styles window as a particular type of style?

A) chart style B) paragraph style C) linked style D) character style

Computer Science & Information Technology

What is the difference between the way that a distance-vector routing protocol and a link-state routing protocol update their networks?

What will be an ideal response?

Computer Science & Information Technology