Lecture

Heapsort and Priority Queues

Description

This lecture covers the Heapsort algorithm, which builds a max-heap from an array and sorts it in O(n log n) time. It explains how Heapsort works by repeatedly discarding the maximum element. The lecture also introduces priority queues, dynamic sets of elements with associated values, and operations like INSERT, HEAP-MAXIMUM, HEAP-EXTRACT-MAX, HEAP-INCREASE-KEY, and MAX-HEAP-INSERT. The instructor compares Heapsort to quicksort and highlights that while Heapsort is efficient, quicksort is usually faster in practice. Additionally, the lecture demonstrates how heaps can be used to efficiently implement priority queues.

This video is available exclusively on Mediaspace for a restricted audience. Please log in to MediaSpace to access it if you have the necessary permissions.

Watch on Mediaspace
About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.