Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please explain with steps the true options. Start with an empty heap, insert 10,12,6,14,1,5 in order into a max-heap. Which numbers require swapping (percolating up)

please explain with steps the true options.

image text in transcribed

Start with an empty heap, insert 10,12,6,14,1,5 in order into a max-heap. Which numbers require swapping (percolating up) when we insert them? Select all that apply. 0 10 12 6 14 0 1 5 b) Start with an empty heap, insert 9,15,6,21,-5,1 in order into a min-heap. Which numbers ever been stored at the top (root)? Select all that apply. 9 O 15 6 O 21 -5 O 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

1. What is called precipitation?

Answered: 1 week ago

Question

1.what is dew ?

Answered: 1 week ago

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago