Find Jobs
Hire Freelancers

data structure and algorithms

₹100-400 INR / hour

Zavřený
Zveřejněno před více než 8 roky

₹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
IČ projektu: 8655689

O projektu

10 nabídky
Vzdálený projekt
Aktivní před 9 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
10 freelanceři nabízejí v průměru ₹249 INR/hodinu za tuto práci
Avatar uživatele
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 v 3 dnech
5,0 (10 recenze)
4,1
4,1
Avatar uživatele
A proposal has not yet been provided
₹100 INR v 4 dnech
5,0 (28 recenze)
3,8
3,8
Avatar uživatele
A proposal has not yet been provided
₹400 INR v 3 dnech
5,0 (9 recenze)
3,3
3,3
Avatar uživatele
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 v 3 dnech
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
A proposal has not yet been provided
₹277 INR v 3 dnech
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
i am Computer Science Student. just studied Data structures. good knowledge of all the data structures.
₹220 INR v 3 dnech
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
i have already solved all. I shall directly mail it to you. i have published research papers on sorting algorithms.
₹222 INR v 0 dni
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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 v 2 dnech
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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 v 6 dnech
0,0 (0 recenze)
0,0
0,0
Avatar uživatele
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 v 10 dnech
0,0 (0 recenze)
0,0
0,0

O klientovi

Pochází z INDIA
Calcutta, India
4,6
121
Ověřená platební metoda
Členem od led 29, 2011

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.