BinarySearchTree (Part 1)

已完成 已发布的 Jan 22, 2003 货到付款
已完成 货到付款

Part 1 - BinarySearchTree - Create an abstract class named BinarySearchTree in the cs312 package that extends the AbstractBinarySearchTree class as defined below. Please also include the two classes below in the [url removed, login to view] file, but note that you are NOT ALLOWED to change these two classes. class BinaryTreeNode { public BinaryTreeNode left; public BinaryTreeNode right; public BinaryTreeNode parent; public Integer value; } abstract class AbstractBinarySearchTree { BinaryTreeNode root; public abstract void add(Integer i); public abstract boolean exists(Integer i); public abstract String inorder(); public abstract String preorder(); public abstract String postorder(); } The BinarySearchTree class should implement all of the methods EXCEPT the "add(Integer)" method. That is why the class will still be declared abstract. The methods should be implemented to perform the necessary functionalities. For the inorder(), preorder(), and postorder() methods, make sure that the output is correct. I will use these methods to test the other methods in the class. Since we now have an abstract class named BinarySearchTree, we need to create another class that extends this class so that we can then use our method implementations. For this project, I need to create two different classes that extend the BinarySearchTree class. One of the classes will be named NaiveBinarySearchTree and the other will be named BalancedBinarySearchTree. Part 2 - NaiveBinarySearchTree - This class will extend the BinarySearchTree class that you wrote in Part 1. Please put this class in the cs312 package, and make the class public. For this class, you will implement the add method in the class. The reason this class is "naïve" is because when you add a value to the tree, you will add it in the easiest location. In other words, the algorithm for where to place this element will be as easy as comparing (see BinarySearchTree Part 2 on bids)

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

Windows NT 2000 Jbuilder Enterprise

## Deadline information

You must view the request for bid for BinarySearchTree (Part 2) to see the rest of this project. I can only put 2000 characters on each project, so I ran out of space. Please submit a bid for the entire project, not each bid request. Also, please include a comment in your response that you understand it is one project.

工程 Java MySQL PHP 软件构架 软件测试

项目ID: #2900973

关于项目

13个方案 远程项目 活跃的Jan 23, 2003

授予:

salajanvw

See private message.

$17 USD 在14天内
(14条评论)
3.4

有13名威客正在参与此工作的竞标,均价$29/小时

finecodervw

See private message.

$21.25 USD 在14天内
(147条评论)
6.1
ingeniadesign

See private message.

$17 USD 在14天内
(53条评论)
5.1
emesevw

See private message.

$11.05 USD 在14天内
(111条评论)
4.4
teamvw

See private message.

$21.25 USD 在14天内
(36条评论)
3.8
proteusworld

See private message.

$17 USD 在14天内
(3条评论)
3.4
nickyro

See private message.

$41.65 USD 在14天内
(8条评论)
2.3
cyberknight

See private message.

$42.5 USD 在14天内
(4条评论)
1.3
junipervw

See private message.

$17 USD 在14天内
(6条评论)
1.2
l0g1x

See private message.

$14.45 USD 在14天内
(2条评论)
0.0
yarsalanpk

See private message.

$85 USD 在14天内
(0条评论)
0.0
saurabhsoni

See private message.

$51 USD 在14天内
(1条评论)
0.8
notabanker

See private message.

$25.5 USD 在14天内
(0条评论)
0.0