Heaps Basic Idea Heaps:Max-heap VS Min-heap 10 9 9 10 12 Max-heap property Min-heap property A[Parent(i)]≥A[ A[Parent(i)】≤A[间 酸 口卡4的左生,登 0a0 MA Jun (Institute of Computer Software) Problem Solving May4.2022 3/30Heaps Basic Idea Heaps: Max-heap VS Min-heap 12 10 9 5 6 1 Max-heap property A [P arent(i)] ≥ A [i] 1 5 9 10 6 12 Min-heap property A [P arent(i)] ≤ A [i] MA Jun (Institute of Computer Software) Problem Solving May 4, 2022 3 / 30