Radix_Heap_Algorithm

Radix_Heap_Algorithm - 15.082 and 6.855J February 25, 2003...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
1 15.082 and 6.855J February 25, 2003 Radix Heap Animation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 An Example from AMO (with a small change) 1 0 1 2 3 4 7 8 15 16 31 32 63 1 4 5 3 6 13 5 2 8 15 20 9 0 Initialize distance labels Insert nodes into buckets. Initialize buckets and their ranges. 0 2 3 4 5 6
Background image of page 2
3 Select 1 0 1 2 3 4 7 8 15 16 31 32 63 4 5 3 6 13 5 2 8 15 20 9 0 Select the node with minimum distance label 0 2 3 4 5 6 1
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Update 3 0 1 2 3 4 7 8 15 16 31 32 63 4 5 3 6 5 2 8 9 Scan arcs out of node 1 and update distance labels. 0 2 3 4 5 6 1 13 2 0 15 4 20 5
Background image of page 4
5 Select 3 0 1 2 3 4 7 8 15 16 31 32 63 4 5 6 5 2 8 9 Select the node with minimum distance label 0 6 1 2 4 5 Node 3 has label 0, which is minimum. 13 0 15 20 3
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Update 3 0 1 2 3 4 7 8 15 16 31 32 63 4 5 6 5 2 8 9 Scan arcs out of node 3 and update distance labels. 0 6 1 2 4 5 13 0 15 20 3 9 5
Background image of page 6
7 Select: part 1 0 1 2 3 4 7 8 15 16 31 32 63 4 5 6 5 2 8 20 9 Find the first non-empty bucket, by scanning buckets from left to right.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

Radix_Heap_Algorithm - 15.082 and 6.855J February 25, 2003...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online