www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# HERE IS THE CS502 2nd QUIZ SOLUTION

Counting sort has time complexity:
Select correct option:
O(n)
O(n+k)
O(k)
O(nlogn)

Which sorting algorithn is faster :
Select correct option:
O(n^2)
O(nlogn)
O(n+k)
O(n^3)

In in-place sorting algorithm is one that uses arrays for storage :
Select correct option:
Both of above may be true according to algorithm
More than 3 arrays of one dimension.

Which may be stable sort:
Select correct option:
Bubble sort
Insertion sort
Both of above

The running time of quick sort depends heavily on the selection of
Select correct option:
No of inputs
Arrangement of elements in array
Size o elements
Pivot elements

Quick sort is
Select correct option:
Stable and In place
Not stable but in place
Stable and not in place
Some time in place and send some time stable

In Quick sort algorithm,constants hidden in T(n lg n) are

Large          Medium       Not known        small

Sorting is one of the few problems where provable ________ bonds exits on how fast we can sort,

upper        lower     average       log n

what is memorization

(? )

i forget the answer of it sorry .

(? )

(? )

(? )

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

heap

binary tree
binary search tree
array

just remember me in ur prayers.....

Thanks .

Regards...

Umair sid

Views: 2167

### Replies to This Discussion

CS502  Quiz No.2 DEC 03, 2012

Attachments:

CS502_Solved_Online_Quiz#02

Attachments:

CS502 Two more online quiz files

checked it

Attachments:

1

2

3

4

5

## Latest Activity

36 minutes ago
Mani Siddiqui posted a discussion

### Past Midterms Solved /Un solved papers

36 minutes ago
Zimal Chaudhary and Golden Eye are now friends
37 minutes ago
38 minutes ago
56 minutes ago

### CS619 (Final Year Project) Meat On Wheels iOS App

6 hours ago
Imran Sarwar joined + M.Tariq Malik's group

9 hours ago
11 hours ago