Nhóm 2 — Trung cấp

5 bài cây: Tree, BST, Heap, Balanced Trees, Trie.

Nhóm này dạy gì?

Cây và biến thể — backbone của database index, autocomplete, scheduler. Tiền đề: hoàn thành Nhóm Cơ bản (cần Big-O, Array, Stack, Queue).

Lộ trình 5 bài — học tuần tự

Lesson 01
Thuật ngữ, binary tree, bốn cách duyệt: preorder, inorder, postorder, level-order.
Lesson 02
BST property, insert/delete/search. Vì sao dãy đã sắp xếp tạo cây tệ.
Lesson 03
Min/max heap, biểu diễn mảng, sift up/down. Heap sort, median streaming.
Lesson 04
AVL (rotation), Red-Black. Vì sao Java TreeMap dùng RB.
Lesson 05
Cây tiền tố, insert/search O(L). Autocomplete, dictionary, IP routing.