Bsc CSIT Semester 3 – Data Structure and Algorithms – Unit 8: Trees and Graphs (8 Hrs.)
Comprehensive questions and detailed answers for Unit 8: Trees and Graphs (8 Hrs.). Perfect for exam preparation and concept clarity.
Explain AVL tree with example. Also, explain balancing algorithm for this tree.
Write Dijkstra’s algorithm to find shortest path between any two vertices of a graph.
What is AVL tree? How heap differ from tree? Construct an AVL tree for data 24,12,8,15,35,30,57,40,45 and 78.
What is the application of spanning tree? Draw a MST of a graph containing any 8 vertices and 11 edges with arbitrary edge costs.
Write short notes on:
a. Breadth First traversal of graph
b. TOH
Why do we need to balance the binary search tree? Justify with an example. Create an AVL tree from the data 24, 12, 8, 15, 35, 30, 57, 40, 45, 78.
Find the MST of following graph using Prim’s algorithm.
Write short noes on:
a. Priority Queue
b. Breadth First traversal of a graph
What is binary search tree? Write a program to implement insertion and deletion algorithms in binary search tree.
What is graph traversal? Explain.
What is shortest path? Explain Dijkstra algorithm for finding shortest path using suitable example.
What is minimum spanning tree? Explain
Sample Questions
Write Dijkstra’s algorithm to find shortest path between any two vertices of a graph.
What is AVL tree? How heap differ from tree? Construct an AVL tree for data 24,12,8,15,35,30,57,40,45 and 78.
What is the application of spanning tree? Draw a MST of a graph containing any 8 vertices and 11 edges with arbitrary edge costs.
Write short notes on: a. Breadth First traversal of graph b. TOH
And more questions available on this page.