Ask Question
12 September, 04:07

You are given n sorted sequences each one containing n keys. You may assume n is a power of two. We want to merge them into one sorted sequence containing all the keys. Assume all of the keys are distince. What is an upper bound on the number of comparisons performed. Provide a multiplicative constant for the most important number and as much as possible for the remaining terms. (Only the result counts.)

+4
Answers (1)
  1. 12 September, 04:29
    0
    Upper bound means the algorithm will not use more time than this.

    Since there n sorted sequence and having n distinct keys, the upper bound will be:

    O (n^2logn) using Min Heap, n^2 because there will be the output of array size n*n
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “You are given n sorted sequences each one containing n keys. You may assume n is a power of two. We want to merge them into one sorted ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers