Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 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
2long10 marks

Define a binary search tree (BST). Write algorithms for insertion and deletion of a node in a BST and trace them with a suitable example.

treesbst
3long10 marks

What is a graph? Explain Breadth First Search (BFS) and Depth First Search (DFS) traversal techniques with suitable examples and their applications.

graphstraversal
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

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

complexity
5short5 marks

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

linked-list
6short5 marks

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

queue
7short5 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
8short5 marks

Differentiate between bubble sort and selection sort with examples.

sorting
9short5 marks

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

treestraversal
10short5 marks

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

searching
11short5 marks

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

heap
12short5 marks

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

graphs