To optimize selection sort, one can implement a _______ that avoids unnecessary swaps.

  • Binary Search Tree
  • Max Heap
  • Min Heap
  • Priority Queue
To optimize selection sort, one can implement a Min Heap that avoids unnecessary swaps. By maintaining a Min Heap, the algorithm can efficiently identify the minimum element without the need for swapping until the final selection.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *