You are on page 1of 1

Name…………………………. Roll. No.…………………………..

Quiz # 01
Q: 01) Hash 11,22,33,44,55,66,77 to a hash table of size 17, considering collision
resolving schemes as follows.

1) Linear probing or open Address 2) Quadratic Hashing

3) Double Hashing 4) chain addressing 5) Bucket Chaining

Q: 02) The complexity of merge sort algorithm is (d)


a) O(n) b) O(log n) c) O(n2) d) O(n log n)

Q: 03) The complexity of Binary search algorithm is (b)


a) O (n) b) O (log n) c) O (n2) d) O (n log n)

Q: 04) When in-order traversing a tree resulted E A C K F H D B G; the preorder traversal


would return (b)

a) FAEKCDBHG b) FAEKCDHGB c) EAFKHDCBG


d) FEAKDCHBG
Q: 05) In Binary trees nodes with no successor are called (b)

a) End nodes b) Terminal nodes c) Final nodes d) Last nodes

Q: 06) Use Dijsktra’s Algorithm to calculate

shortest path for following un-directed

weighted graph. Also draw the Adjacent

Matrix for following graph.

Q: 07) Prove that any algorithm that finds an element X in a sorted list of N elements
requires (log N) comparisons.

Q: 08) Write a C Program to Implement a Heap & provide Insertion & Deletion operation.

Q: 09) Balance the tree (use appropriate models of AVL Tree)

Q:10) Write an algorithm for Push and pop operation of stack using linked list

You might also like