please help
2. The following is to perform the down heap bubbling. Reading the codes care any corrections if needed (10 points) protected void downHeap(Position<Entry<K,V>>T) while (heap.isInternal(r)) ( PositionくEntry<K,V>> s; if (!heap.hasRight(r) s heap.left(r); // the position of the smaller child else if (comp.compare(heap.left(r).element0.getKey0. heap.right(r).element0.getKey0) < 0) s heap.left(r); else s = heap.right(r); if (comp.compare(s.elementO.getKey0, r.elementO-getKey0) 0) swap(r, s); r s else Show transcribed image text 2. The following is to perform the down heap bubbling. Reading the
OR
OR