Question: Please answer all questions or points will not be given, thanks! Question 2 (1 point) The ______ algorithm works like a selection sort but accomplishes

Please answer all questions or points will not be given, thanks!

Question 2 (1 point)

Please answer all questions or points will not be given, thanks! Question

The ______ algorithm works like a selection sort but accomplishes this task efficiently by using a data structure that is a special type of binary tree

Question 2 options:

Question 3 (1 point)

2 (1 point) The ______ algorithm works like a selection sort but

Heap sort is a comparison based sorting algorithm

Question 3 options:

1) True
2) False

Question 4 (1 point)

accomplishes this task efficiently by using a data structure that is a

______ dorting algorithms maintain the relative order of records with equal keys.

Question 4 options:

Question 5 (1 point)

special type of binary tree Question 2 options: Question 3 (1 point)

Which of these algorithms has the fewest number of swap operations (in terms of n)?

Question 5 options:

1)

Heap sort

2)

Selection sort

3)

Insertion sort

4)

Merge Sort

5)

Bubble Sort

Question 6 (1 point)

Heap sort is a comparison based sorting algorithm Question 3 options: 1)

The minimum possible time complexity for a comparison based sorting algorithm and a random input array is O(n)

Question 6 options:

1) True
2) False

Question 7 (1 point)

True 2) False Question 4 (1 point) ______ dorting algorithms maintain the

A ______ sort examines the data only by comparing the two elements with a comparison operator.

Question 7 options:

Question 8 (1 point)

relative order of records with equal keys. Question 4 options: Question 5

A Stack is used when data is transferred asynchronously between two processes.

Question 8 options:

1) True
2) False

Question 9 (1 point)

(1 point) Which of these algorithms has the fewest number of swap

What is the output of the following function with the input "( ( ) ) ( )" function g(s) { var a = s.split(""); var b = []; for (var i = 0; i 0) b.pop();} } return b.length; }

Question 9 options:

Question 10 (1 point)

operations (in terms of n)? Question 5 options: 1) Heap sort 2)

Given the following 2 functions - what is the value of calling fb(5,2)? function fa(x, y){ if (y == 0) return 0; return (x + fa(x, y-1)); } function fb(x, y) { if (y == 0) return 1; return fa(x, fb(x, y-1)); }

Question 10 options:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!