SUNY Geneseo Department of Computer Science


Ordered Trees

{Date}

CSci 141, Spring 2004
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture


Misc

Making up the lost tests

End of semester info

Hand out Lab 13

Questions?

Lab: adding decisions

Why does "println" on tree node print

Derive maximum number of decisions tree can make

[Number of Leaves vs Height in Binary Decision Tree]

Add-questions method returns?

Ordered Tree Properties

Section 13.3

Ordered tree

Traverse an ordered tree

Anything added to tree goes in leaf

Very efficient for searching

Wording: "find does not search every node ... only those nodes in direct path"

Traversal is recursion, but different from search

[Traversal Recursively Makes Subtrees Executre "Traverse" Algorithm]

Why are searches so efficient?

Next

Limits of Computer Science

Read Chapter 17


Next Lecture