{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab8_001

# lab8_001 - 15-121 FALL 2009[CORTINA]LAB 8Binary-tree...

This preview shows pages 1–2. Sign up to view the full content.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 15-121 FALL 2009 [CORTINA]LAB 8Binary-tree visualization of the Yahoo search engine bot crawling an experimental website.From www.computergraphica.comIn this lab, you will implement several recursive methods using binary trees. EXERCISESDownload the project Lab8.zip. It contains the binary tree class discussed in lecture. Although this code is given to you, along with the testers for your exercises, you should read through this code carefully after recitation to make sure you can write this code yourself. 1. Look at any of the testers and examine the definitions for the seven binary trees. Draw each binary tree on a piece of paper before proceeding on. (All three testers use the same seven binary trees.) Check with your neighbors to make sure you draw the binary trees correctly. 2. Write a method sumin the BinaryTreeclass that returns the total sum of data values stored in the binary tree. Your method should have the following signature: public int sum()Note that this method should not be recursive, but it should call another private method that is...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

lab8_001 - 15-121 FALL 2009[CORTINA]LAB 8Binary-tree...

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

View Full Document
Ask a homework question - tutors are online