Adjacency list representation of an undirected graph


Question 1)a) Describe priority queues.

b) Write the program to implement priority queue using structures.

c) Write functions to perform the postorder and preorder traversal of a binary tree.

Question 2)a) Sort the given set of numbers using merge sort showing clearly the different steps sorting.

60, 50, 25, 10, 35, 25, 75, 30.

b) Write the depth first traversal and breadth first traversal for the following graph starting from vertex A.

1793_Graph_1.jpg

Question 7)a) Define Hashing and Hash collision.

b) Describe different techniques used to resolve hash collision.

c) Describe the array of adjacency list representation of an undirected graph with the example.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Adjacency list representation of an undirected graph
Reference No:- TGS06555

Expected delivery within 24 Hours