Pointer Jumping
Pointer Jumping
Read M[i] Into Total;
For k := 1 to élg nù
Read Next[i] into Ptr
If Ptr ¹ 0 Then
Read M[Ptr] Into x;
Total := Total + x;
Write Total into M[i];
Read Next[Ptr] Into NewPtr
Write NewPtr into Next[i]
End If
End For
Previous slide
Next slide
Back to the first slide
View Graphic Version