Heaps Basic ldea Heaps:Storage Q 1:Why do we implement a heap with an array? 16 14 10 12345678910 1614i0879324 (b) 發 口+4的,▣老4=2)QC MA Jun (Institute of Computer Software) Problem Solving May4.2022 4/30Heaps Basic Idea Heaps: Storage Q 1: Why do we implement a heap with an array? Easy to index Save memory Better cache locality MA Jun (Institute of Computer Software) Problem Solving May 4, 2022 4 / 30