1) Write a program that creates and manages Fibonacci heaps. The program must implement the following operations: creation, insertion, find min, extract min, decrease key, and deletion. The program should present a menu where user may choose from implemented options. minH) min|H) 18 0-0-0-0 23 24 23 21 39 18 52 38 30 26 46 26 46 30 52 41 35 After extract min Decreasekey(52, 1) Delete 24

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

USING C++ LANGUAGE IN NETBEANS 

note:

Values are ready (not entered by user)
Just select it from the menu and the result appears

I want a personal solution, not solutions from the Internet

Write a comment for each line

1) Write a program that creates and manages Fibonacci heaps. The program must
implement the following operations: creation, insertion, find min, extract min, decrease
key, and deletion. The program should present a menu where user may choose from
implemented options.
minH
min[H)
18
38
0-0-0
23 1
17
24
23
21
39
41
18
52
38
30
26
46
39
35
After extract min
Decreasekey(52, 1)
Delete 24
Transcribed Image Text:1) Write a program that creates and manages Fibonacci heaps. The program must implement the following operations: creation, insertion, find min, extract min, decrease key, and deletion. The program should present a menu where user may choose from implemented options. minH min[H) 18 38 0-0-0 23 1 17 24 23 21 39 41 18 52 38 30 26 46 39 35 After extract min Decreasekey(52, 1) Delete 24
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Module hierarchy chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning