
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

(Units: 5–8) Total Marks: 100 Pass Marks: 50
Note: All questions carry equal marks.
Q. 1 (a) What is linked list? What are its types? Give representation of a linked list in memory. (b) Formulate an algorithm to insert an element at the start of the linked list and to delete an element from the middle of the linked list.
Q. 2 (a) Define arid explain tree and its types. Give linked representation of a binary tree in memory. (b) Formulate an algorithm and a program for the pre-order, post-order and in-order traversal of binary tree. Illustrate with the help of diagrams.
Q. 3 (a) Give time complexities of Bubble sort, Insertion sort, Selection sort, Quick sort, Merge sort, Radix sort, Binary search, and Sequential search in tabular form. (b) Give trace of Bubble sort, Insertion sort, and Selection sort using one suitable example for each.
Q. 4 (a) Give trace of Binary search and Sequential search using examples. (b) What is a graph and what are its types? Give matrix and adjacency list representation of an example graph in memory?
Q. 5 Explain each step with graph example for the trace of Breadth first search and Depth first search graph traversal algorithms