Find Jobs
Hire Freelancers

Code

$30-5000 USD

In Progress
Posted over 21 years ago

$30-5000 USD

Paid on delivery
Implement a minimum binary heap class using an array instead of a dynamic allocation approach. The public section of your class must contain: constructor, destructor, enqueue, dequeue, isEmpty, isFull plus any other functions necessary to complete the tasks below. You must add traversal methods either to the public section or by implementing them as ("free") application functions. You need to include the definition of a BinaryNode class to fit your implementation. Write a driver program to demonstrate that your class works. The driver program should: 1. Create a heap by inserting the following data into an initially empty tree: 50, 25, 80, 20, 35, 70, 90, 23, 65, 100, 75, 30, 15, 68, 5,150, 18, 95 2. Print the array that holds the heap. 3. Insert 29 into the heap. 4. Print the array that holds the heap. 5. Dequeue an element from the heap 6. Print the heap nodes in the order visited by a postorder traversal 7. Dequeue an element from the heap. 8. Print the heap nodes in the order visited by a preorder traversal 9. Dequeue an element from the heap. 10. Print the heap nodes in the order visited by an inorder traversal 11. Dequeue an element from the heap. 12. Print the array that holds the heap. When printing the heap, print the values horizontally to save space (and paper!). Be sure to comment your code in a clear and consistent manner. ## 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 Visual Studio C++
Project ID: 2885452

About the project

23 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$2 USD in 14 days
4.7 (54 reviews)
5.3
5.3
23 freelancers are bidding on average $19 USD for this job
User Avatar
See private message.
$17 USD in 14 days
5.0 (105 reviews)
7.7
7.7
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (55 reviews)
7.1
7.1
User Avatar
See private message.
$17 USD in 14 days
4.9 (170 reviews)
5.8
5.8
User Avatar
See private message.
$17 USD in 14 days
4.9 (139 reviews)
5.6
5.6
User Avatar
See private message.
$51 USD in 14 days
4.4 (72 reviews)
5.5
5.5
User Avatar
See private message.
$25.50 USD in 14 days
4.6 (60 reviews)
4.5
4.5
User Avatar
See private message.
$4.63 USD in 14 days
4.2 (111 reviews)
4.4
4.4
User Avatar
See private message.
$38.25 USD in 14 days
5.0 (18 reviews)
4.2
4.2
User Avatar
See private message.
$10.20 USD in 14 days
5.0 (16 reviews)
3.9
3.9
User Avatar
See private message.
$4.25 USD in 14 days
5.0 (17 reviews)
3.8
3.8
User Avatar
See private message.
$17 USD in 14 days
5.0 (14 reviews)
3.7
3.7
User Avatar
See private message.
$11.05 USD in 14 days
4.9 (24 reviews)
3.5
3.5
User Avatar
See private message.
$8.50 USD in 14 days
4.6 (11 reviews)
3.1
3.1
User Avatar
See private message.
$17 USD in 14 days
3.7 (5 reviews)
2.9
2.9
User Avatar
See private message.
$12.75 USD in 14 days
4.3 (20 reviews)
2.7
2.7
User Avatar
See private message.
$15.30 USD in 14 days
4.8 (16 reviews)
2.5
2.5
User Avatar
See private message.
$8.50 USD in 14 days
4.1 (3 reviews)
2.1
2.1
User Avatar
See private message.
$17 USD in 14 days
5.0 (1 review)
0.0
0.0
User Avatar
See private message.
$68 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$12.75 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
3
Member since Nov 18, 2002

Client Verification

Other jobs from this client

searching and sorting
$30-5000 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.