Docsity

Linked Lists-Data Structures-Assignment, Exercises of Data Structures and Algorithms

Toggle sidebar
bg1
ASSIGNMENT No. 2
(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
docsity.com

Partial preview of the text

Download Linked Lists-Data Structures-Assignment and more Exercises Data Structures and Algorithms in PDF only on Docsity!

ASSIGNMENT No. 2

(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

docsity.com