






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Heap
Algorithm
Heap Algorithm
02. (^) តើតើតើតើតើតើតើតើ Heap
03. (^) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ Heap
Heap Operations តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ Heap តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ
1. Insertion – តើតើតើតើតើតើ តើតើតើតើតើតើតើតើតើ - (^) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ - (^) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ ➡️ តើតើតើតើតើតើតើ: តើតើតើតើតើតើ 15 → តើតើតើតើតើតើតើតើតើតើតើតើតើតើ → តើតើតើតើតើតើតើ 2. Deletion – តើតើតើ Root - (^) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ (Root) - (^) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ Root - (^) តើតើតើតើតើតើតើតើ (តើតើតើ តើ តើតើតើ) ➡️ តើតើតើតើតើតើតើ: តើតើតើ 50 តើតើតើ → តើតើតើតើ 10 តើតើតើតើតើ → តើតើតើតើតើតើតើតើ 3. Heapify – តើតើតើតើតើតើតើតើ Heap - (^) តើតើតើតើតើតើ Tree តើតើតើតើតើតើ តើតើតើតើតើតើតើ Heap - (^) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ ➡️ តើតើតើតើតើតើតើ: តើតើតើ child តើតើតើតើតើ parent → តើតើតើតើតើតើតើតើ 4. Build Heap – តើតើតើតើតើតើ Heap តើតើ Array - (^) តើតើតើតើតើតើតើ array តើតើតើតើតើតើ → តើតើ Heap - (^) តើតើតើតើ Heapify តើតើតើតើតើតើតើតើតើតើតើតើតើតើ ➡️ តើតើតើតើតើតើតើ: [20, 5, 30] → តើតើតើតើតើតើ → Heap
05. (^) តើតើតើតើតើតើតើ Max and Min Heap
Array: [50, 30, 40, 10, 20, 35]
40, 50] (តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ)
06. (^) តើតើតើតើតើតើតើតើតើតើតើតើតើ Heap
Heap តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ
Scheduling in Operating Systems: តើតើតើតើ Heap តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ (processes) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ
Priority Queue: Queue តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ តើតើតើតើតើ តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ តើតើតើ តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ Background
Dijkstra Algorithm: តើតើតើតើ Min Heap តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ (Graph)តើ
Resource Allocation: តើតើតើតើតើតើតើតើ (CPU, Memory, etc.) តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ
Huffman Coding (Data Compression) : តើតើតើតើ Min Heap តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ Huffman តើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើតើ