Om DSAprepration
Om DSAprepration
UNIT 1 (PYQ)
1.What are the advantages of linked list over array? (4) [2022]
2.Given an array and a number, find two integer that sum to the given number. Write an
algorithm for this? (8) [2022]
3. what is time complexity? Explain the significance of big0, theta and omega notations.
4 an array VAL [ 1……15] [ 1……10] is stored in the memory with each element requiring 4
bytes of storage. If the base address of the array VAL is 1500, determine the location of VAL
[12] [9] when the array VAL is stored.
6.What are asymptotic notations? Also explain Big O(h) notation, omega(h), theta(h) notaton. (4) [2022
nov]
7.What is meant by the term “Row-major-order and “column-major-order”? Consider a 2-D array A[20]
[50] which requires 4 byte of storage. Let the base address of data is 2000. Determine the location of
A[10][10] when the array is stored as :
(b) Define header node in a circular linked list and design (8) [23A]
(d) define Two way linked lists and design an algorithm to find a LOC and insert a new item a linked array
(8) [23 A]
This. 8 [23 n ]