Week 96 of 145 · TAOCP Vol 3: Sorting and Searching
TAOCP 5.2.3 Sorting by Selection
2 tasks, 4 steps. Open a task's steps to see exactly what to do; each guide has the detail.
Sign up or sign in to tick these off and give this week a due date.
By the end of this week you can
- Trace heap construction and the sift-down step of heapsort.
- Implement a priority queue with insert and delete-min on an array heap.
- Compare straight selection, tree selection and heapsort by comparisons used.
-
3 steps
Read §5.2.3 Sorting by Selection
Week 96 · Self-check
Three quick questions
Ungraded, and it never holds anything up. Pick an answer to see why.
Watch along
Free talks and lectures that go with this week, on the speakers' own channels. Optional.
- Lecture 3: Insertion Sort, Merge SortSrini Devadas · MIT OpenCourseWare, 6.006 Fall 2011 · 51 minThe two sorts that open and close section 5.2, with their costs worked out. (opens in a new tab)
- Lecture 4: Heaps and Heap SortSrini Devadas · MIT OpenCourseWare, 6.006 Fall 2011 · 52 minBuilding a heap and sifting down, the heart of sorting by selection. (opens in a new tab)
Discussion
0 postsStuck on week 96, or finished early? Say what you tried and what happened. Hints over answers: full solutions go in a spoiler.
No posts yet. Ask a question or share a tip.
Sign in to postAnyone can read. Posting needs an account with a confirmed email.