logo

Crowdly

Browser

Add to Chrome

Egészítsd ki a kódot, hogy az egy elem kupacba való helyes beszúrását adja meg! ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Egészítsd ki a kódot, hogy az egy elem kupacba való helyes beszúrását adja meg!

HEAP-INSERT(A,key)

heap-size[A]

:=  heap-size[A]

+ 1

 i

:= heap-size[A]

while .......................................

      A[i] := A[PARENT(i)]

       i := PARENT(i)

While End

A[i]

:= key

0%
0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on moodle.uni-pannon.hu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome