260 views

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
akash.dinkar12 asked Jun 27, 2019
311 views
Give an $O(n\lg\ k)$- time algorithm to merge $k$ sorted lists into one sorted list, where $n$ is the total number of elements in all the input lists. (Hint: Use a minhea...
0 votes
0 votes
1 answer
2
akash.dinkar12 asked Jun 27, 2019
526 views
The operation HEAP-DELETE$(A, i)$ deletes the item in node $i$ from heap $A$. Give an implementation of HEAP-DELETE that runs in $O(lg\ n)$ time for an $n-$element max-h...
0 votes
0 votes
0 answers
3
akash.dinkar12 asked Jun 27, 2019
371 views
Show how to implement a first-in, first-out queue with a priority queue. Show how to implement a stack with a priority queue.