CS502 Midterm Online Quiz

0%

CS502-Midterm

1 / 50

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

2 / 50

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

3 / 50

Due to left complete nature of binary tree, the heap can be stored in

4 / 50

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

from a larger set of _____________

5 / 50

Which may be a stable sort?

6 / 50

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

7 / 50

In Heap Sort algorithm, the total running time for Heapify procedure is ____________

8 / 50

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

9 / 50

What is the total time to heapify?

10 / 50

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

11 / 50

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

12 / 50

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

13 / 50

For the sieve technique we solve the problem,

14 / 50

The Knapsack problem belongs to the domain of _______________ problems.

15 / 50

While Sorting, the ordered domain means for any two input elements x and y _________ satisfies only.

16 / 50

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

17 / 50

The running time of quick sort depends heavily on the selection of

18 / 50

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

19 / 50

In RAM model instructions are executed

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

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

22 / 50

In pseudo code, the level of details depends on intended audience of the algorithm.w

23 / 50

Sorting can be in _________

24 / 50

Efficient algorithm requires less computational…….

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

26 / 50

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

27 / 50

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

28 / 50

For the Sieve Technique we take time

29 / 50

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

30 / 50

One Example of in place but not stable sort is

31 / 50

______________ graphical representation of algorithm.

32 / 50

_______________ is a graphical representation of an algorithm

33 / 50

Brute-force algorithm uses no intelligence in pruning out decisions.

34 / 50

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

35 / 50

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

36 / 50

For the heap sort, access to nodes involves simple _______________ operations.

37 / 50

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

38 / 50

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

39 / 50

Which sorting algorithm is faster

40 / 50

One example of in place but not stable algorithm is

41 / 50

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

42 / 50

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

43 / 50

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

44 / 50

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

45 / 50

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

46 / 50

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

47 / 50

A RAM is an idealized algorithm with takes an infinitely large random-access memory.

48 / 50

Counting sort has time complexity:

49 / 50

For the heap sort we store the tree nodes in

50 / 50

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

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