MIT 6.006 Introduction to Algorithms, Fall 2011 View the complete course: http://ocw.mit.edu/6-006F11 Instructor: Srini Devadas License: Creative Commons ...
========== The following
content is provided under a Creative
Commons license. Your support will help MIT
OpenCourseWare continue to offer high quality
educational resources for free. To make a donation or
view additional materials from hundreds of MIT courses,
visit MIT OpenCourseWare at ocw.mit.edu. PROFESSOR: One of the cutest
little data structures that was ever invented
is called the heap. And we're going to use
the heap as an example implementation of
a priority queue. And we'll also use heaps to
build a sorting algorithm, called heap sort,
that is very, very different from either
insertion sort or merge sort. And it has some nice properties
that neither insertions sort nor merge sort have. But what I want to
do is get started with motivating the
heap data structure, regardles...