CS1201 DS
CS1201 DS
1. Define Algorithm.
2. Define space complexity.
3. Define time complexity.
4. Define efficiency of an algorithm.
5. How will calculate the space complexity of an algorithm?
6. How will calculate the time complexity of an algorithm?
7. Define Big “Oh” notation.
8. Define Big “Theta” notation.
9. Define Big Omega notation.
10. Define Amortized analysis.
11. List out the limitations of asymptotic notations.
12. What are the characteristics of an algorithm?
13. Define Potential method.
14. What are the methods available for amortized analysis?
15. Why we go for Amortized Analysis?
16. List out the uses of an algorithm.
PART – B
1. a. Explain the characteristics of an algorithm with an example (8)
b. Explain the worst case and average case analysis of insertion sort (8)
2. Explain about asymptotic notations in detail (16)
3. a. Derive time complexity for matrix addition algorithm (8)
b. Explain about time complexity of an algorithm (8)
4. Explain amortized analysis of an algorithm in detail. (16)
5. a. Discuss in detail about performance analysis of algorithm. (12)
b. Write an algorithm for swapping of two numbers. (4)
PART – B
1. (a) Explain the algorithm for inserting and deleting an element in a list (8)
(b) Explain how stack is used to convert the following expression into
postfix form a * ( b + c ^ d ) – e ^ f * ( g / h ) (8)
2. (a) Explain how array is represented in memory as row major & column
major method (8)
1. Define tree.
2. List out the ways of representing a Tree.
3. Define Binary tree.
4. What are the types of binary tree?
5. How to declare a Binary Tree?
6. What are the different binary tree traversal techniques?
7. Differentiate General Tree with Binary Tree?
8. Differentiate Full Binary Tree and Complete Binary Tree?
9. Differentiate Binary Search Tree and Binary AVL Tree?
10. What is a root node?
11. What is a leaf node?
12. What is node?
13. Define path in a tree.
14. What are siblings?
15. What do you mean by Degree of a node?
16. Define length of the path in a tree.
17. Differentiate Depth and Height of a tree?
18. What is level of a tree?
19. What is Expression Tree?
20. What are the basic operations performed in a binary search tree?
21. Define sorting.
22. What are the factors to be considered while choosing a sorting technique?
23. List out some of the stable and unstable sorting techniques.
24. Mention the limitations of insertion sort.
25. Differentiate Internal Sorting and External Sorting.
26. Define hash function.
27. Define hashing.
PART – B
1. (a) Explain the storage representation for tree. (8)
(b) Explain the In order tree traversal algorithm with example (8)
2. (a) Explain the insertion sorting algorithm with example (8)
(b) Explain the quick sort algorithm with example (8)
3. (a) Explain how binary tree is represented using linked list (8)
(b) Explain post order tree traversal algorithm with example (8)
4. Explain with suitable example the binary search algorithm (16)
5. (a) Explain pre order tree traversal algorithm with example (8)
(b) Explain the merge sort algorithm with example (8)
6. (a) Explain the shell sort algorithm with example (8)
(b) Explain the bucket sort algorithm with example (8)
7. Construct an expression tree for the expression A+(B-C)*D+(E*F). (16)
8.
PART – A (2 Marks)
1. Define graph.
2. Define undirected graph.
3. Define directed graph.
4. Define weighted graph.
5. Differentiate Connected graph and complete graph.
6. Differentiate Strongly connected and weakly connected graph.
7. Define a path in a graph.
8. What is length of path in a graph?
PART – B
1. Explain the Dijikstra’s Algorithm for finding the shortest path and
find the shortest path from v1 to v6. (16)
********************************************************