CS502-Midterm
1 / 50
In Quick Sort Constants hidden in T(n log n) are
2 / 50
Efficient algorithm requires less computational…….
3 / 50
In which order we can sort?
4 / 50
Analysis of Selection algorithm ends up with,
5 / 50
One example of in place but not stable algorithm is
6 / 50
What is the solution to the recurrence T(n) = T(n/2)+n .
7 / 50
The number of nodes in a complete binary tree of height h is
8 / 50
Upper bound requires that there exist positive constants c2 and n0 such that f(n) ____ c2n for all n <= n0(ye question ghalat lag raha hai mujhae
9 / 50
Which may be a stable sort?
10 / 50
Sorting is one of the few problems where provable ________ bonds exits on how fast we can sort,
11 / 50
The array to be sorted is not passed as argument to the merge sort algorithm.
12 / 50
Divide-and-conquer as breaking the problem into a small number of
13 / 50
_______________ is a graphical representation of an algorithm
14 / 50
Consider the following code:
For(j=1; j
For(k=1; k<15;k++)
For(l=5; l
{
Do_something_constant();
}
What is the order of execution for this code.
15 / 50
In analysis, the Upper Bound means the function grows asymptotically no faster than its largest term.
16 / 50
Asymptotic growth rate of the function is taken over_________ case running time.
17 / 50
Counting sort has time complexity:
18 / 50
Heaps can be stored in arrays without using any pointers; this is due to the ____________ nature of the binary tree,
19 / 50
What is the total time to heapify?
20 / 50
The function f(n)= n(logn+1)/2 is asymptotically equivalent to n log n. Here Upper Bound means the function f(n) grows asymptotically ____________ faster than n log n.
21 / 50
When we call heapify then at each level the comparison performed takes time
22 / 50
Quick sort is best from the perspective of Locality of reference.
23 / 50
In addition to passing in the array itself to Merge Sort algorithm, we will pass in _________other arguments which are indices.
24 / 50
For the sieve technique we solve the problem,
25 / 50
Which may be stable sort:
26 / 50
What type of instructions Random Access Machine (RAM) can execute?
27 / 50
In Sieve Technique we do not know which item is of interest
28 / 50
We cannot make any significant improvement in the running time which is better than that of brute-force algorithm.
29 / 50
Cont sort is suitable to sort the elements in range 1 to k
30 / 50
Random access machine or RAM is a/an
31 / 50
The running time of quick sort depends heavily on the selection of
32 / 50
For small values of n, any algorithm is fast enough. Running time does become an issue when n gets large.
33 / 50
In pseudo code, the level of details depends on intended audience of the algorithm.w
34 / 50
While solving Selection problem, in Sieve technique we partition input data __________w
35 / 50
In selection algorithm, because we eliminate a constant fraction of the array with each phase, we get the
36 / 50
For Chain Matrix Multiplication we can not use divide and conquer approach because,
37 / 50
Algorithm analysts know for sure about efficient solutions for NP-complete problems.
38 / 50
The definition of Theta-notation relies on proving ___________asymptotic bound.
39 / 50
The analysis of Selection algorithm shows the total running time is indeed ________in n,
40 / 50
The Knapsack problem belongs to the domain of _______________ problems.
41 / 50
A point p in 2-dimensional space is usually given by its integer coordinate(s)____________
42 / 50
In the analysis of Selection algorithm, we make a number of passes, in fact it could be as many as,
43 / 50
The sieve technique is a special case, where the number of sub problems is just
44 / 50
The time assumed for each basic operation to execute on RAM model of computation is-----
45 / 50
A (an) _________ is a left-complete binary tree that conforms to the heap order
46 / 50
The O-notation is used to state only the asymptotic ________bounds.
47 / 50
48 / 50
A RAM is an idealized machine with ______________ random-access memory.
49 / 50
50 / 50
For the heap sort we store the tree nodes in
Your score is
The average score is 40%
Restart quiz