Find Jobs
Hire Freelancers

data structure and algorithms

₹100-400 INR / hour

Закрито
Опублікований over 8 years ago

₹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 yrs ago

Хочете заробити?

Переваги подання заявок на 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
Спосіб оплати верифіковано
На сайті з січ. 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)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.