Skip to content
RED SAGSkills
hard20 pts · first answer countsstacks-and-queues

Supporting decrease-key in a binary heap

You want a heap with a decreaseKey(item, newPriority) operation in O(log n). What extra structure do you need?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions