Question: Question 1 (1 point) The _____ data structure can be used to efficiently find the kth smallest (or largest) element in an array (called order

Question 1 (1 point)

Question 1 (1 point) The _____ data structure can be used to

The _____ data structure can be used to efficiently find the kth smallest (or largest) element in an array (called order statistics)

Question 1 options:

Save

Question 2 (1 point)

efficiently find the kth smallest (or largest) element in an array (called

Which data structure is the most efficient in finding the top 10 largest items in a million stored in a file?

Question 2 options:

1)

Min Heap

2)

Max Heap

3)

BST

4)

Sorted Array

Save

Question 3 (1 point)

order statistics) Question 1 options: Save Question 2 (1 point) Which data

Which data structure would be best suited for converting a recursive implementation of an algorithm to an iterative implementation

Question 3 options:

1)

Tree

2)

Stack

3)

Queue

4)

Graph

Save

Question 4 (1 point)

structure is the most efficient in finding the top 10 largest items

Which of the following data structures is best suited for efficient implementation of priority queue?

Question 4 options:

1)

Linked List

2)

Stack

3)

Array

4)

Heap

Save

Question 5 (1 point)

in a million stored in a file? Question 2 options: 1) Min

Which data structure is used for balancing of symbols? (such as making sure an open parenthesis has a closing one)

Question 5 options:

1)

Tree

2)

Queue

3)

Stack

4)

Graph

Save

Question 6 (1 point)

Heap 2) Max Heap 3) BST 4) Sorted Array Save Question 3

Run time of a graph traversal can be reduced to polynomial order by the use of a ____ as the internal traversal data structure.

Question 6 options:

Save

Question 7 (1 point)

(1 point) Which data structure would be best suited for converting a

The keys 12, 18, 13, 2, 3, 23, 5, and 15 are placed into an emptyy hash table of length 10 with address values of 0 through 9 using open addressing, hash function of h(k) = k mod 10 and linear probing. If inserted in the order given the 15 will go in shich slot?

Question 7 options:

Save

Question 8 (1 point)

recursive implementation of an algorithm to an iterative implementation Question 3 options:

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

Question 8 options:

1) True
2) False

Save

Question 9 (1 point)

1) Tree 2) Stack 3) Queue 4) Graph Save Question 4 (1

What is the output of the following function if called with the argument doFun2(7)? function doFun2(n) { // Enqueue is equivalent to push, Dequeue is equivalent to shift var q = []; q.push(0); q.push(1); for (var i = 0; i

Question 9 options:

Save

Question 10 (1 point)

point) Which of the following data structures is best suited for efficient

What would be the results of f(2) for the following function? function f(n) { if (n == 4) return n; return 2*f(n+1); }

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!