29.07.2015 Views

ECET 370 Week 7 Lab 7 Binary Trees (Devry)/uophelp

For more course tutorials visit www.uophelp.com Full set of lab with working programs. Exercise 1: Lecture review: Binary Search Tree Create a project using the classes Binary Search Tree, Node, and Main in the DocSharing area labeled “The BST." Compile the project, run it, and review the code that is given carefully. These programs test the code discussed in our lecture.

For more course tutorials visit

www.uophelp.com



Full set of lab with working programs.
Exercise 1: Lecture review: Binary Search Tree Create a project using the classes Binary Search Tree, Node, and Main in the DocSharing area labeled “The BST." Compile the project, run it, and review the code that is given carefully. These programs test the code discussed in our lecture.

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ECET</strong> <strong>370</strong> <strong>Week</strong> 7 <strong>Lab</strong> 7 <strong>Binary</strong> <strong>Trees</strong> (<strong>Devry</strong>)<br />

Click Here To Buy The Tutorial<br />

http://www.<strong>uophelp</strong>.com/<strong>ECET</strong>-<strong>370</strong>-(<strong>Devry</strong>)/product-9174-<br />

<strong>ECET</strong>-<strong>370</strong>-<strong>Week</strong>-7-<strong>Lab</strong>-7-<strong>Binary</strong>-<strong>Trees</strong>-(<strong>Devry</strong>)<br />

For more course tutorials visit<br />

www.<strong>uophelp</strong>.com<br />

Full set of lab with working programs.<br />

Exercise 1: Lecture review: <strong>Binary</strong> Search Tree Create a project using<br />

the classes <strong>Binary</strong> Search Tree, Node, and Main in the DocSharing area<br />

labeled “The BST." Compile the project, run it, and review the code that<br />

is given carefully. These programs test the code discussed in our lecture.<br />

Exercise 2: An improved BST class Modify the class <strong>Binary</strong> Search Tree<br />

so that it contains the to String method, instead of the display method<br />

that was given originally.<br />

Exercise 3: Using a BST in an application Use a binary search tree to<br />

implement a dictionary that contains the keywords in the Java language.<br />

Test it. Note that you can use the programs from the previous exercises.<br />

For a list of the keywords in Java, visit<br />

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.ht<br />

ml.<br />

Exercise 4: Recursion and <strong>Binary</strong> <strong>Trees</strong> Write a recursive algorithm that<br />

counts the nodes in a binary search tree.<br />

Exercise 5: Using properties of BSTs Write an algorithm get Max to find<br />

the maximum value stored in a binary search tree.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!