SUNY Geneseo Department of Computer Science


Trees in Arrays

{Date}

CSci 240, Spring 2007
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Misc

SOFIs

Problem Set 13 due today

Lab 12 due tomorrow

Questions?

A Representation for Complete Trees

Section 14.2.4

What would the equations for left, right, and parent look like if array indices started at 0 rather than 1?

[Parent and Child Links in a 0-Based Array]

Develop equations for mapping trinary trees into arrays.

Hand out Problem Set 14

Hand out Lab 13

Next

More on heap insertion

Finish section 14.4


Next Lecture