Heap Size N 1 1 6 Called Output 2 Procedure X Please Explain Thanks Procedure Variablet In Q43836839
please explain thanks
for heap with size n 1. if what(1,6) is called what is the output 2. what procedure is what(i,x)? please explain thanks procedure what(i); variablet : integer; begin if hlí) then begin hi& ; 2 x 1; ife s n then what(1,x); if <n then what(( + 1,x); end; end. h (1110|8|9|6| 7|2|1 4 3 5 3: procedure what(i,x); variable : integer; begin if x <h[i] then begin h[i] & ; (2xi; if ( sn then what(1,2); if l<n then what(+1,c); end; end. h 1110| 8|9|6|7|2|1|4|3|5] 13: -7 Show transcribed image text for heap with size n 1. if what(1,6) is called what is the output 2. what procedure is what(i,x)? please explain thanks procedure what(i); variablet : integer; begin if hlí) then begin hi& ; 2 x 1; ife s n then what(1,x); if
Expert Answer
Answer to for heap with size n 1. if what(1,6) is called what is the output 2. what procedure is what(i,x)? please explain thanks …
OR