Find Jobs
Hire Freelancers

Code

$30-5000 USD

进行中
已发布超过 21 年前

$30-5000 USD

货到付款
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++
项目 ID: 2885452

关于此项目

23提案
远程项目
活跃21 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$2 USD 在14天之内
4.7 (54条评论)
5.3
5.3
23威客以平均价$19 USD来参与此工作竞价
用户头像
See private message.
$17 USD 在14天之内
5.0 (105条评论)
7.7
7.7
用户头像
See private message.
$8.50 USD 在14天之内
5.0 (55条评论)
7.1
7.1
用户头像
See private message.
$17 USD 在14天之内
4.9 (170条评论)
5.8
5.8
用户头像
See private message.
$17 USD 在14天之内
4.9 (139条评论)
5.6
5.6
用户头像
See private message.
$51 USD 在14天之内
4.4 (72条评论)
5.5
5.5
用户头像
See private message.
$25.50 USD 在14天之内
4.6 (60条评论)
4.5
4.5
用户头像
See private message.
$4.63 USD 在14天之内
4.2 (111条评论)
4.4
4.4
用户头像
See private message.
$38.25 USD 在14天之内
5.0 (18条评论)
4.2
4.2
用户头像
See private message.
$10.20 USD 在14天之内
5.0 (16条评论)
3.9
3.9
用户头像
See private message.
$4.25 USD 在14天之内
5.0 (17条评论)
3.8
3.8
用户头像
See private message.
$17 USD 在14天之内
5.0 (14条评论)
3.7
3.7
用户头像
See private message.
$11.05 USD 在14天之内
4.9 (24条评论)
3.5
3.5
用户头像
See private message.
$8.50 USD 在14天之内
4.6 (11条评论)
3.1
3.1
用户头像
See private message.
$17 USD 在14天之内
3.7 (5条评论)
2.9
2.9
用户头像
See private message.
$12.75 USD 在14天之内
4.3 (20条评论)
2.7
2.7
用户头像
See private message.
$15.30 USD 在14天之内
4.8 (16条评论)
2.5
2.5
用户头像
See private message.
$8.50 USD 在14天之内
4.1 (3条评论)
2.1
2.1
用户头像
See private message.
$17 USD 在14天之内
5.0 (1条评论)
0.0
0.0
用户头像
See private message.
$68 USD 在14天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$12.75 USD 在14天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
5.0
3
会员自11月 18, 2002起

客户认证

这个客户的其他工作

searching and sorting
$30-5000 USD
谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。