ADA Assignment1 (2)
ADA Assignment1 (2)
Assignment-1
Q4. Discuss various asymptotic efficiency classes. Explain Big-O, Big-Ω, and Big-Ɵ notations 5 CO1 L2
with examples.
Q5. Apply Selection sort and Bubble Sort for 89, 45, 68, 90, 29, 34, and 17. Also find its time 5 CO1 L3
complexity.
Find the weight of the minimum spanning tree using the Prim’s algorithm, starting from
vertex a.
Q7. Find minimum cost Spanning Tree for the following graph using Kruskal’s algorithm. 5 CO4 L3
Q8. Apply Floyd’s algorithm to find all pair shortest path for a given graph. Find the path matrix 5 CO4 L3
and hence find the intermediate vertices which participate in the path.
Q9. Define Transitive Closure. Find the T matrix for the graph given below. 5 CO3 L3
Q12. Design Insertion Sort algorithm and apply to the following array of elements 89, 5 CO2 L3
45, 68, 90, 29, 34, 17.
Q13. Apply Dijkstra’s algorithm for below graph, and find the single source shortest path. 5 CO4 L3
Prepared By
Dr. B N Veerappa Dr. Rachana P G