CS502 Midterm Online Quiz

0%

CS502-Midterm

1 / 50

In analysis of f (n) =n (n/5) +n-10 log n, f (n) is asymptotically equivalent to ________.

2 / 50

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

3 / 50

The sieve technique is a special case, where the number of sub problems is just

4 / 50

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

5 / 50

What type of instructions Random Access Machine (RAM) can execute?

6 / 50

How much time merge sort takes for an array of numbers?

7 / 50

Divide-and-conquer as breaking the problem into a small number of

8 / 50

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

9 / 50

The analysis of Selection algorithm shows the total running time is indeed ________in n,

10 / 50

In Heap Sort algorithm, if heap property is violated _________

11 / 50

In which order we can sort?

12 / 50

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

13 / 50

While solving Selection problem, in Sieve technique we partition input data __________w

14 / 50

Sieve Technique applies to problems where we are interested in finding a single item

from a larger set of _____________

15 / 50

Which may be stable sort:

16 / 50

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

17 / 50

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

18 / 50

Slow sorting algorithms run in,

19 / 50

______________ graphical representation of algorithm.

20 / 50

Sieve Technique can be applied to selection problem?

21 / 50

Algorithm analysts know for sure about efficient solutions for NP-complete problems.

22 / 50

One of the clever aspects of heaps is that they can be stored in arrays without using any _______________.

23 / 50

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

24 / 50

Efficient algorithm requires less computational…….

25 / 50

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

26 / 50

A RAM is an idealized machine with ______________ random-access memory.

27 / 50

In simple brute-force algorithm, we give no thought to efficiency.

28 / 50

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

29 / 50

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

30 / 50

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

31 / 50

In RAM model instructions are executed

32 / 50

In selection algorithm, because we eliminate a constant fraction of the array with each phase, we get the

33 / 50

The sieve technique works in ___________ as follows

34 / 50

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

35 / 50

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

36 / 50

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

37 / 50

Algorithm is a mathematical entity, which is independent of a specific machine and operating system.

38 / 50

In Heap Sort algorithm, the maximum levels an element can move upward is _________

39 / 50

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

40 / 50

_______________ is a graphical representation of an algorithm

41 / 50

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

42 / 50

Before sweeping a vertical line in plane sweep approach, in start sorting of the points is done in increasing order of their _______coordinates.

43 / 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,

44 / 50

After sorting in merge sort algorithm, merging process is invoked.

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

46 / 50

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

47 / 50

Floor and ceiling are ____________ to calculate while analyzing algorithms.

48 / 50

For the worst-case running time analysis, the nested loop structure containing one “for” and one “while” loop, might be expressed as a pair of _________nested summations.

49 / 50

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

50 / 50

In analysis, the Upper Bound means the function grows asymptotically no faster than its largest term.

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