[Solved] CS 635 Advanced OO Design and Programming Assignment 3

$25

File Name: CS_635_Advanced_OO_Design_and_Programming_Assignment_3.zip
File Size: 508.68 KB

SKU: [Solved] CS 635 Advanced OO Design and Programming Assignment 3 Category: Tag:
5/5 - (1 vote)
  1. Implements a binary search tree with addition. You dont have to implement delete on the tree. The nodes in the tree contain strings.
  2. Use the Null Object pattern to add a null node to your tree to eliminate the need to check for null references or pointers in your tree.
  3. Modify your Binary Search Tree that uses Null object to accept a Visitor. Implement a Visitor to produce the following representation of a search tree. Each node maps to (Value (Left Subtree)(Right Subtree)). So the representation of the tree below is (5 (3 () (4 () ()))(10 () ())).
  1. Use the Strategy pattern so that clients can provide an ordering that the tree will use to order its elements. Implement two orderings. The first ordering is the normal lexicographic (or alphabetic) ordering for strings. The second ordering compares strings by first reversing the string and then comparing the strings lexicographically. In the second ordering az would come after bb.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS 635 Advanced OO Design and Programming Assignment 3
$25