Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please make sure all of the ans are correct :) 14. Which of the following sorting algorithms in its typical implementation gives best performance when

image text in transcribedimage text in transcribedplease make sure all of the ans are correct :)

14. Which of the following sorting algorithms in its typical implementation gives best performance when applied on an array which is sorted or almost sorted (maximum 1 or two elements are misplaced). C) A. Quick Sort B. Heap Sort C. Merge Sort D. Insertion Sort 15. The structure of a heap must be a ( A. non-binary tree B. binary search tree C. complete binary tree D. full binary tree 16. The given array is arr = {1,2,4,3}. Bubble sort is used to sort the array elements. How many iterations will be done to sort the array? () A. 4 B. 2 C. 1 DO 17. Which of the following sequence corresponds to a heap? ( ) A. 37, 99, 45, 33, 66, 10, 22, 13 B. 99, 45, 66, 13, 37, 10, 22, 33 C. 99, 66, 45, 33, 37, 10, 22, 13 D. 99, 66, 22, 33, 37, 13, 45, 10 18. To build a heap from N records, the best time complexity is: ? A. O(logn) B. O(n) C. O(nlogn) D.(n)

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions