Find Jobs
Hire Freelancers

data structure and algorithms

₹100-400 INR / hour

已关闭
已发布超过 8 年前

₹100-400 INR / hour

1. Heaps. (a) What are the minimum and maximum number of elements in a heap of height h? (b) Show that an n-element heap has height blog nc. (c) Show that in any subtree of a max-heap, the root of the subtree contains the largest value occurring anywhere in that subtree. (d) Is the sequence h23; 17; 14; 6; 13; 10; 1; 5; 7; 12i a max-heap? Why or why not? 2. Heaps. (a) Illustrate the operation of Max-Heapify(A; 3) on the array A = h27; 17; 3; 16; 13; 10; 1; 5; 7; 12; 4; 8; 9; 10i. (b) Illustrate the operation of Build-Max-Heap(A) on the array A = h5; 3; 17; 10; 84; 19; 6; 22; 9i. (c) You are given a list of numbers for which you need to construct a min-heap. How would you use an algorithm for constructing a max-heap to construct a min-heap? 3. Heapsort. Argue the correctness of Heapsort using the following loop invariant. At the start of each iteration of the for loop, the subarray A[1 : : : i] is a max-heap containing the i smallest elements of A[1 : : : n], and the subarray A[i+1 : : : n] contains the n
项目 ID: 8655689

关于此项目

10提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
10威客以平均价₹249 INR/小时来参与此工作竞价
用户头像
hello i am a PhD in computer science and engineering. i can do this algorithm task perfectly. i can give you a sample solution(message me for that). thanks
₹277 INR 在3天之内
5.0 (10条评论)
4.1
4.1
用户头像
A proposal has not yet been provided
₹100 INR 在4天之内
5.0 (28条评论)
3.8
3.8
用户头像
A proposal has not yet been provided
₹400 INR 在3天之内
5.0 (9条评论)
3.3
3.3
用户头像
HI sir ...? I will provide exact and to the point answer to those question. I have sound knowledge about data structure and specially heep. I will also provide code for those question. I know heap very good and also provide you slides for heap. we will also discuss about the price.
₹277 INR 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
A proposal has not yet been provided
₹277 INR 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
i am Computer Science Student. just studied Data structures. good knowledge of all the data structures.
₹220 INR 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
i have already solved all. I shall directly mail it to you. i have published research papers on sorting algorithms.
₹222 INR 在0天之内
0.0 (0条评论)
0.0
0.0
用户头像
I have studied data structures and algorithm as a subject for my under graduate. I am very familiar with the concepts of min and max heap data structures. I can provide a clear descriptive answer to the questions mentioned in a couple of slides/ images. As the concepts required for the solution are relatively fresh the task at hand is easy for me. I hope you will give me an opportunity to showcase my knowledge and gain a reputation here. Please message me if you think I am worth the time.
₹222 INR 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
My team of expert programmers would be more than happy to work on this project. Please give us a chance and I assure of the best quality work. Regards Naveen
₹222 INR 在6天之内
0.0 (0条评论)
0.0
0.0
用户头像
I am good with data structures and algorithms and I am able to solve all the questions listed in the project description. 1. [assume height of root node is 0] minimum elements: 2^h; Maximum elements: 2^(h+1)-1 2. Proof will be provided after we are hired. 3. In a max heap, by definition, the parent nodes contains a value greater than both its children. Hence, through recursive definition, the value of parent node will be higher than the children of its children and so on. Hence root node will have highest value in that subtree. 4. No it is not a max heap, because 7 is the child of 6 but 7 is greater. 5. h5; 3; 17; 10; 84; 19; 6; 22; 9 2(a). (1 indexed) 27 17 10 16 13 3 10 5 7 12 4 8 9 1 2(b). (1 indexed) 84 22 19 10 13 17 6 5 9 2.(c) negate each number in array and call build_max_heapy(A) on it. remove negative sign after this operation.
₹277 INR 在10天之内
0.0 (0条评论)
0.0
0.0

关于客户

INDIA的国旗
Calcutta, India
4.6
121
付款方式已验证
会员自1月 29, 2011起

客户认证

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