Show Bid Request
Sorting in C++ with AVL tree and B-tree
Bid Request Id: 29357
|
|
|
Posted by: |
seatiger74 (25 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 3%
|
Posted: |
Sep 30, 2002 5:49:19 PM EDT
|
Bidding Closes: |
Oct 4, 2002 6:07:32 PM EDT
|
Viewed (by coders): |
139 times
|
Deadline: |
10/5/2002
TIME EXPIRED
|
|
|
|
Description:
Sorting in C++ with AVL-Trees and B-Trees
First of all, there are some files to get in order to do B-Trees the Kruse
way instead of the Weiss way. So go ahead and get btree.h
and also btreeint.cpp and you should be able to
compile and run btreeint to see some basic functionality.
The assignment is to see how well AVL and B-Trees do with sorting. As in
part III of the last assignment, set up a large array of ints,
size 1048576.
Write a function that takes the array and an int size as parameters, and
1. Inserts all the array elements into an AVL-Tree.
2. Traverses the tree in order, placing the elements back into the array.
Write another function that does the same with a B-Tree.
For the first part of your output, run both functions with an array of
size 256, and output the whole array in 8 columns across the screen
(to show your sorts work).
For the final part, CPU time both functions as they sort the large array,
and report the time for each. Also sort the array with qsort and report
that time as well.
Here is how to do CPU timings in C++:
#include <cstdlib>
#include <ctime>
using namespace std;
...
/* setup doubles start, elap */
/* When ready to start timing a process, do */
start = clock();
/* When the process is over, do */
elap = (clock() - start) / CLOCKS_PER_SEC;
Output elap as a floating value, and print to 2 decimals. It will be
time in seconds.
I also included the demo files(btree.h ,btreeint.cpp)and the last assignment(bintree3.cpp, bintree3.exe)so you can use it for this project.
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:
Please write the project in C++. I use Visual C++ 6.0 to run it. Also, I include part III of the last assignment so u can use it for this project. I think my instructor want us to modify the last assignment to be this assignment based on what he described.
Must be 100% finished and received by buyer on:
Oct 5, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
Please send the codes on time
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$20 (USD)
|
Sep 30, 2002 6:27:19 PM EDT
|
10
(Excellent)
|
|
|
Hi DT!
As I understand B-tree code should be used from file found in your attachment and AVL-tree should be implemented as C++ class template.
Sincerely yours, Paul
|
|
|
|
|
|