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 vector after each comparison. The merge sort splits the vector in half each time it is called.
Computer Science & Information Technology
You might also like to view...
Word text that is separated by tabs can be converted to a table
Indicate whether the statement is true or false
Computer Science & Information Technology
When was the Freedom of Information Act originally enacted?
a. 1940s b. 1950s c. 1960s d. 1970s
Computer Science & Information Technology