Assignment (DSA)
Assignment (DSA)
Assignment
Q1. Explain the time and space complexity of algorithm and also explain Big-O,
omega and theta notation with graph.
P: 5, 6, 2, +, *, 12, 4, /, -
Q3. What is Linked List? What are the advantages of Linked List over arrays.
Write an algorithm to insert a node in a Single linked list.
Q4. What is Binary Search Tree? Create binary search tree for the following
data
20 17 6 8 25 10 23 5 27 9
Q5. What is AVL tree? Construct the height balance tree or AVL tree for the
following data
25 45 50 55 60 65 75
Q6. Define Graph? Write an Algorithm for BFS and DFS with the help of a
suitable example.