1. Derive the formula to find physical address of an element of three dimensional
array stored in row major order.
2. What do you mean by complexity? Explain time complexity and space complexity
and write down time-space trade off.
3. What is sparse matrix? Explain. Write the applications of sparse matrix?
4. Consider the linear array, A(5:50), whose base address is 300 and the number of
words per memory cell is 4. Find the address of A[15].
5. Consider the linear arrays AAA[5:50],BBB[-5:10] and CCC[1:8]
a. Find the number of elements in each array?
b. Suppose base (AAA) =300 and w=4 words per memory cell for AAA. Find the
address of AAA[15],AAA[35] and AAA[55].
6. Describe various form of data structure. Define data structure and also describe the
difference between primitive and non-primitive data structure. Write most
commonly used function in data structure. What are the factors that affect the
choice of data structure?
7. Define Linked List? What are the applications of Linked List?
8. Explain the method to represent the polynomial equation using Iinked list. Write
and explain method to add two polynomial equations using linked list.
9. Write a C function to count the number of nodes in singly linked list?
10. What are advantages and disadvantages of doubly linked list over singly linked list?
11. Explain Garbage Collection and Compaction.
12. What do you mean by Stack? Explain with suitable example with all its operation.
How stack can be represented in memory?
13. State the Tower of Hanoi problem. Write recursive algorithm to solve the problem.
14. Write an algorithm to convert INFIX expression to postfix expression. Carefully
state any assumption you make regarding the input.
15. Write the algorithm to evaluate a postfix expression using a stack.
16. Write an algorithm to convert a valid arithmetic infix expression into its equivalent
postfix expression.
17. Convert the following arithmetic expression into postfix and show stack status after
every step in tabular forms: A+(B*C-(D/E-F)*G)*H
18. Write an algorithm for evaluating an expression in postfix form. Consider the
following infix expression ((a+b)+c^ (d+e)+f)^(g+h) Convert the expression to
equivalent prefix expression and postfix expression.
19. Convert the following arithmetic expression into postfix and show stack status after
every step at each step:
a. (A+B)*D+E / (F+A*D)+
b. A*(B+C) / D- G
c. 3* LOG (X+1) –A/2
20. Explain queue data structure. Write an algorithm and c function to implement
Queue using Array and Linked list. Write algorithm for performing insertion and
deletion in it.
21. Show, how a priority queue can be implemented using linked list.
22. How would you implement a circular queue of integers in C using array? Write
routines to implement the appropriate operations for it.
23. Discuss the array representation of the binary tree
24. Draw binary tree of following algebraic equation:
[a + (b - c)] * [(d - e) / (f + g - h)]