Suppose you have a high-performance computer, which has a CPU containing a dedicated bank of k >
Question:
Suppose you have a high-performance computer, which has a CPU containing a dedicated bank of k > 2 optimization registers. This bank of registers supports the insertion of key-value pair, (x, y), into the bank of registers in O(1) time, assuming that there are fewer than k numbers already stored in the bank. In addition, this bank of registers allows you to remove and return a key-value pair, (x, y), with smallest key, x, from the bank of registers in O(1) time. Show that you can use this high-performance computer to sort n numbers in O(n log n/ log k) time.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Algorithm Design And Applications
ISBN: 9781118335918
1st Edition
Authors: Michael T. Goodrich, Roberto Tamassia
Question Posted: