CS502 Midterm Online Quiz

0%

CS502-Midterm

1 / 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

2 / 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.

3 / 50

Counting sort has time complexity:

4 / 50

Analysis of Selection algorithm ends up with,

5 / 50

Quick sort is

6 / 50

Quick sort is based on divide and conquer paradigm; we divide the problem on base of pivot element and:

7 / 50

Which sorting algorithm is faster

8 / 50

In which order we can sort?

9 / 50

The sieve technique works where we have to find _________ item(s) from a large input.

10 / 50

Which may be a stable sort?

11 / 50

In Quick Sort Constants hidden in T(n log n) are

12 / 50

The O-notation is used to state only the asymptotic ________bounds.

13 / 50

In analysis, the Lower Bound means the function grows asymptotically at least as fast as its largest term.

14 / 50

A point p in 2-dimensional space is usually given by its integer coordinate(s)____________

15 / 50

When we call heapify then at each level the comparison performed takes time

16 / 50

For Chain Matrix Multiplication we can not use divide and conquer approach because,

17 / 50

In Quick sort, we don’t have the control over the sizes of recursive calls

18 / 50

Algorithm is concerned with.......issues.

19 / 50

Cont sort is suitable to sort the elements in range 1 to k

20 / 50

For the sieve technique we solve the problem,

21 / 50

The Knapsack problem belongs to the domain of _______________ problems.

22 / 50

In Heap Sort algorithm, we build _______ for ascending sort.

23 / 50

Asymptotic growth rate of the function is taken over_________ case running time.

24 / 50

The time assumed for each basic operation to execute on RAM model of computation is-----

25 / 50

Is it possible to sort without making comparisons?

26 / 50

Quick sort is best from the perspective of Locality of reference.

27 / 50

In addition to passing in the array itself to Merge Sort algorithm, we will pass in _________other arguments which are indices.

28 / 50

An in place sorting algorithm is one that uses ___ arrays for storage

29 / 50

How many elements do we eliminate in each time for the Analysis of Selection algorithm?

30 / 50

In the analysis of Selection algorithm, we eliminate a constant fraction of the array with each phase; we get the convergent _______________ series in the analysis,

31 / 50

A (an) _________ is a left-complete binary tree that conforms to the heap order

32 / 50

The reason for introducing Sieve Technique algorithm is that it illustrates a very important special case of,

33 / 50

In ____________ we have to find rank of an element from given input.

34 / 50

In the analysis of Selection algorithm, we make a number of passes, in fact it could be as many as,

35 / 50

The number of nodes in a complete binary tree of height h is

36 / 50

In Sieve Technique we do not know which item is of interest

37 / 50

The ancient Roman politicians understood an important principle of good algorithm design that is plan-sweep algorithm.

38 / 50

The function f(n)=n(logn+1)/2 is asymptotically equivalent to nlog n. Here Lower Bound means function f(n) grows asymptotically at ____________ as fast as nlog n.

39 / 50

One Example of in place but not stable sort is

40 / 50

In plane sweep approach, a vertical line is swept across the 2d-plane and _______structure is used for holding the maximal points lying to the left of the sweep line.

41 / 50

The definition of Theta-notation relies on proving ___________asymptotic bound.

42 / 50

F (n) and g (n) are asymptotically equivalent. This means that they have essentially the same __________ for large n.

43 / 50

The array to be sorted is not passed as argument to the merge sort algorithm.

44 / 50

In Quick Sort Constants hidden in T(n log n) are

45 / 50

For the Sieve Technique we take time

46 / 50

One example of in place but not stable algorithm is

47 / 50

For small values of n, any algorithm is fast enough. Running time does become an issue when n gets large.

48 / 50

The sieve technique works in ___________ as follows

49 / 50

In Sieve Technique we do not know which item is of interest

50 / 50

What is the total time to heapify?

Your score is

The average score is 40%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi