Uses the Heap-Max and Max-Heapify function to extract the “rotnode”, replaces it with the smallest element, and then fixes the heap with max-heapify
Kjøretid: Lik som Max-Heapify →
Search
Jan 06, 2025, 1 min read
Uses the Heap-Max and Max-Heapify function to extract the “rotnode”, replaces it with the smallest element, and then fixes the heap with max-heapify
Kjøretid: Lik som Max-Heapify → O(lgv)