algoritmauzmanı
Sign in
TREN
Part 7

Heaps and Balanced Trees

21lessons2 h 46 min0done

A is fast, but only while it stays balanced. This part covers structures that keep the shape of a tree in check with rules. A is a complete tree that always keeps the smallest or the largest element at the root; it is the basis of priority queues and heap sort.

The part codes the heap first with an array, then with linked nodes. Then it works through the rotations, insertion and deletion of the , introduces red-black trees and B-trees with their rules, and ends with exam questions.

Lesson 7.0 What is a heap?6 min