Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain merge sort with its algorithm. Sort the list 38, 27, 43, 3, 9, 82, 10 using merge sort showing all the intermediate steps and analyze its complexity.

sortingmerge
2long10 marks

What is an AVL tree? Explain different rotations used to balance an AVL tree with examples. Construct an AVL tree by inserting 21, 26, 30, 9, 4, 14, 28, 18, 15, 10, 2, 3, 7.

treesavl
3long10 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
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Compare linear search and binary search. Write an algorithm for binary search and analyze its complexity.

searching
5short5 marks

What is a heap? Explain the heapify operation and construct a max-heap from 4, 10, 3, 5, 1.

heap
6short5 marks

Explain different representations of a graph (adjacency matrix and adjacency list) with examples.

graphs
7short5 marks

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

dynamic-programming
8short5 marks

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

stack
9short5 marks

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

sortingheap
10short5 marks

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

complexity
11short5 marks

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

linked-list
12short5 marks

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

queue