CS502 Midterm Online Quiz

0%

CS502-Midterm

1 / 50

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

2 / 50

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

3 / 50

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

4 / 50

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

5 / 50

For the sieve technique we solve the problem,

6 / 50

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

7 / 50

One example of in place but not stable algorithm is

8 / 50

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

9 / 50

The sieve technique works in ___________ as follows

10 / 50

For the heap sort we store the tree nodes in

11 / 50

What is the total time to heapify?

12 / 50

An algorithm is a mathematical entity that is dependent on a specific programming language.

13 / 50

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

14 / 50

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

15 / 50

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

16 / 50

Efficient algorithm requires less computational…….

17 / 50

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

18 / 50

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

19 / 50

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

20 / 50

If there are Θ (n2) entries in edit distance matrix then the total running time is

21 / 50

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

22 / 50

Slow sorting algorithms run in,

23 / 50

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

24 / 50

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

25 / 50

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

26 / 50

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

27 / 50

Random access machine or RAM is a/an

28 / 50

Sieve Technique applies to problems where we are interested in finding a single item from a larger set of _____________

29 / 50

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

30 / 50

If we associate (x, y) integers pair to cars where x is the speed of the car and y is the negation of the price. High y value for a car means a ________ car.

31 / 50

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

32 / 50

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

33 / 50

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

34 / 50

Which may be stable sort:

35 / 50

_________ is one of the few problems, where provable lower bounds exist on how fast we can sort.

36 / 50

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

37 / 50

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

38 / 50

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

39 / 50

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

40 / 50

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

41 / 50

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

42 / 50

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

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

44 / 50

The Knapsack problem belongs to the domain of _______________ problems.

45 / 50

Brute-force algorithm for 2D-Maxima is operated by comparing ________ pairs of points.

46 / 50

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

47 / 50

Sorting can be in _________

48 / 50

Which may be a stable sort?

49 / 50

We cannot make any significant improvement in the running time which is better than that of brute-force algorithm.

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

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