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

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
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 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

This note was uploaded on 12/19/2009 for the course CS 121 taught by Professor Reid-miller during the Spring '09 term at Carnegie Mellon.

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 Right Arrow Icon
Ask a homework question - tutors are online