php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS301 Assignment # 4 Due Date: 02-Feb-2016
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Assignment Question:



Suppose we want to develop software for token machine of ABC bank. At entrance, token machine generates token for each customer. The first 10 customers received the following token numbers:



00, 11, 22, 33, 44, 55, 66, 77, 88 and 99





Students are required to write C++ code in order to:



Build a Min heap from the above data
Build a Max heap from the above data



Solution Guidelines:

Your solution should contain the following functions:

buildMaxHeap()

buildMinHeap()

maxHeapify()

minHeapify()

buildMaxHeap() function is used to build MaxHeap.

buildMinHeap() function is used to build MinHeap.

maxHeapify() function is used to arrange the values according to the max heap property.

minHeapify() function is used to arrange the values according to the min heap property.



In main() function, declare an array of 10 elements of integer type. Assign the values as given in the sample output.

Then call the buildMaxHeap() function and print the max heap values as given in the sample output.

Then call the buildMinHeap() function and print the min heap values as given in the sample output.



0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,951 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,979 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,221 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,289 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,018 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,711 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,848 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,749 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,847 01-20-2016, 06:19 PM
Last Post: Vuhelper
  Data Warehousing– CS614 Assignment No. 3 solution 20th Jauary 2016 Vuhelper 0 9,618 01-20-2016, 06:16 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support