Answered step by step
Verified Expert Solution
Question
1 Approved Answer
recursion: Exam 2: November, 2018 CSCI 6620 Data Structures 4. Heaps (10 points) 14 2 | 4 | 3 | 5 | 6 | 3
recursion:
Exam 2: November, 2018 CSCI 6620 Data Structures 4. Heaps (10 points) 14 2 | 4 | 3 | 5 | 6 | 3 | 8 29 | 14 | 25 | 19 | 32 | 61|21|16 | 30 | 38 | 15 The diagram above is a min-heap of integers (a) (4) Insert the number 13 into this heap. Redraw the array on your answer paper (b) (6) Starting the result from part (a). Delete the top item on the heap and readjust the rest according to the deletion algorithm. Redraw the heap as you do each change. 5. Postfix (4 points) Calculate the answer and SHOW YOUR WORK, step by step: (a) given this postfix expression: a b * c d e-+ * f g % + (b) and given these values for the variables: a#3, b-2, c"1, d-7, e-3, f-10, g-5 6. Recursion (10 points) 1 #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started