Content deleted Content added
Line 36:
# This repeats until all lists are empty
The head elements are generally stored in a priority queue. Depending on how the priority queue is implemented, the running time can vary. If ideal merge keeps its information in a sorted list, then inserting a new head element to the list would be done through a [[Linear search]] and the running time will be Θ(
On the other hand, if the sorted items in a [[Heap (data structure)|heap]], then the running time becomes Θ(
=== Binary Tree Implementation ===
|