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

Question 1 (1 point)

Question 1 (1 point) The minimum possible time complexity for a comparison

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

Question 1 options:

1) True
2) False

Save

Question 2 (1 point)

based sorting algorithm and a random input array is O(n logn) 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:

Save

Question 3 (1 point)

1 options: 1) True 2) False Save Question 2 (1 point) The

Heap sort is a comparison based sorting algorithm

Question 3 options:

1) True
2) False

Save

Question 4 (1 point)

______ algorithm works like a selection sort but accomplishes this task efficiently

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

Question 4 options:

Save

Question 5 (1 point)

by using a data structure that is a special type of binary

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

Save

Question 6 (1 point)

tree Question 2 options: Save Question 3 (1 point) Heap sort is

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

Save

Question 7 (1 point)

a comparison based sorting algorithm Question 3 options: 1) True 2) False

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

Question 7 options:

Save

Question 8 (1 point)

Save Question 4 (1 point) ______ dorting algorithms maintain the relative order

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

Question 8 options:

1) True
2) False

Save

Question 9 (1 point)

of records with equal keys. Question 4 options: Save Question 5 (1

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:

Save

Question 10 (1 point)

point) Which of these algorithms has the fewest number of swap operations

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!