[Instructions] [Search] [Current] [Syllabus] [Links] [Handouts] [Outlines] [Labs] [More Labs] [Assignments] [Quizzes] [Examples] [Book] [Tutorial] [API]
Back to Introduction to Trees. On to Lab: Traversing and Iterating Trees.
Held Tuesday, April 27
Summary
Contents
Notes
0
/ \
1 2
/ \ / \
3 4 5 6
/ \
7 8
floor((i-1)/2).
setLeft and
setRight might
require modifying a large number of cells (since we've decided that
it deletes the old subtree).
2 2 2 2 2 2 3
/ \ / / \ / \ / \ / \
3 7 3 3 7 3 7 3 7 3 3
/ \ | / / \
9 7 8 9 9 7
2 2 2 2 2
/ \ / \ / \ /|\ |
3 7 9 7 7 3 3 3 3 3
/ / \ / \ / \ / \
9 8 8 9 7 9 7 4 7
5
5
/
6
5 4
/ \ to / \
6 4 6 5
4 4
/ \ / \
6 5 to 4 5
/ /
4 6
4
/ \
4 5
/ \
6 7
4 4 2
/ \ / \ / \
4 5 to 4 2 to 4 4
/ \ | / \ | / \ |
6 7 2 6 7 5 6 7 5
2 ? 5 3 3
/ \ / \ / \ / \ / \
3 4 to 3 4 to 3 4 to 5 4 to 4 4
/ \ | / \ | / \ / \ / \
6 4 5 6 4 5 6 4 6 4 6 5
History
Back to Introduction to Trees. On to Lab: Traversing and Iterating Trees.
[Instructions] [Search] [Current] [Syllabus] [Links] [Handouts] [Outlines] [Labs] [More Labs] [Assignments] [Quizzes] [Examples] [Book] [Tutorial] [API]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS152/99S/Outlines/outline.46.html
Source text last modified Tue Apr 27 09:59:43 1999.
This page generated on Tue Apr 27 10:09:45 1999 by SiteWeaver. Validate this page's HTML.
Contact our webmaster at rebelsky@math.grin.edu