Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Define minimum spanning tree. Explain Prim's and Kruskal's algorithms to find the minimum spanning tree of a graph with a suitable example.

graphsmst
2long10 marks

What is hashing? Explain different collision resolution techniques (open addressing and chaining) with suitable examples.

hashing
3long10 marks

What is sorting? Explain the working mechanism of quick sort algorithm with a suitable example. Analyze its best-case and worst-case time complexity.

sorting
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

What is dynamic programming? Explain it with the example of the 0/1 knapsack problem.

dynamic-programming
5short5 marks

What are the applications of stack? Explain how a stack is used in function calls.

stack
6short5 marks

Explain heap sort algorithm with an example and analyze its time complexity.

sortingheap
7short5 marks

What is algorithm complexity? Explain Big-O, Big-Omega and Theta notations with examples.

complexity
8short5 marks

What is a linked list? Differentiate between singly and doubly linked lists with diagrams.

linked-list
9short5 marks

Define a queue. Explain circular queue and write an algorithm for its enqueue and dequeue operations.

queue
10short5 marks

What is recursion? Write a recursive algorithm to compute the factorial of a number and explain the role of the stack in recursion.

recursion
11short5 marks

Differentiate between bubble sort and selection sort with examples.

sorting
12short5 marks

Explain inorder, preorder and postorder tree traversals with an example binary tree.

treestraversal