CS502 Midterm Online Quiz

0%

CS502-Midterm

1 / 50

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

2 / 50

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

3 / 50

Sieve Technique can be applied to selection problem?

4 / 50

The Knapsack problem belongs to the domain of _______________ problems.

5 / 50

Which may be stable sort:

6 / 50

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

7 / 50

Quick sort is

8 / 50

One example of in place but not stable algorithm is

9 / 50

Which may be a stable sort?

10 / 50

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

11 / 50

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

12 / 50

44.The running time of an algorithm would not depend upon the optimization by the compiler but that of an implementation of the algorithm would depend on it.

13 / 50

In Heap Sort algorithm, if heap property is violated _________

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

15 / 50

Efficient algorithm requires less computational…….

16 / 50

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

17 / 50

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

18 / 50

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

19 / 50

What is the total time to heapify?

20 / 50

Heaps can be stored in arrays without using any pointers; this is due to the ____________ nature of the binary tree,

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

22 / 50

Which sorting algorithm is faster

23 / 50

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

24 / 50

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

25 / 50

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

26 / 50

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

27 / 50

Analysis of Selection algorithm ends up with,

28 / 50

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

29 / 50

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

30 / 50

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

31 / 50

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

32 / 50

Slow sorting algorithms run in,

33 / 50

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

34 / 50

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

35 / 50

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

36 / 50

For the heap sort we store the tree nodes in

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

38 / 50

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

39 / 50

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

40 / 50

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

41 / 50

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

42 / 50

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

43 / 50

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

44 / 50

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

45 / 50

In 2d-space a point is said to be ________if it is not dominated by any other point in that space.

46 / 50

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

47 / 50

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

48 / 50

What is the total time to heapify?

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

50 / 50

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

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