Important Questions
Important Questions
1. Define an algorithm. Describe commonly used asymptotic notations and give their
Significance.
2. Write about a priori analysis used to find efficiency of algorithm.
3. Explain with an example polynomial Vs exponential algorithms.
4. Distinguish between best, worst and average case complexities of the linear search
algorithm.
5. Write an algorithm to search an element in an array using Fibonacci search.
6. Write an algorithm for binary search, Use the algorithm to search 32 in the following list
of elements. Explain the process in each step 12,16,17,19,20,22,24,29,30,32,37.
7. Compare the advantages and disadvantages of bubble, insertion and selection sort using
the
Following list of numbers. 23, 56, 14, 34, 58, 97, 72, 69, 36. With time complexity.
8. . What is Hashing? Explain Different Hash function method in detail. Explain each one
9. Draw a hash table with size of 9. Use division method as hash function Insert the keys: 5,
29, 20, 0, 27 and 18 into your table (in that order). And use open addressing to resolve the
collision.
a. linear probing b. quadratic probing c. double hashing
UNIT - II
1. What is Stack? Why it is known as LIFO? Write algorithm of PUSH, POP, and
TOP/PEEP operation on Stack.
2. What is the principle of queue? Write algorithm of ENQUEUE and DEQUEUE
operations on queue.
3. Consider a circular queue of size 5. Perform the following operations in the specified
order and write front & rear values after every operation and also display the contents
i) Insert 10, 20, and 30 and ii) delete 2 elements
iii) Insert 50, 60, 70 and 80 IV) delete 2 elements
4. Write a program to create a circular queue using array and perform insertion, deletion,
and traversing operations.
5. List out and Briefly explain the “types of queues” and “applications of queues”.
6. Differentiate between stack and Queues.
7. Write an algorithm to convert the expression, into Postfix form and trace the algorithm
for the infix expression (A+(B/C*D)-E^F)*G
8. Write the algorithms for postfix evaluation. Evaluate the following post fix expression. 5
6 2 + * 8 4 /- using stack.
9. What are priority queues? Explain
Note: read the lab programs implementing stack, queue and circular queue using arrays.
UNIT – III
1. Explain the drawbacks of sequential Data Structures ( ARRAYS ) and merits of linked
Data Structures(LINKED LISTS) with neat sketches
2. What are the advantages, disadvantages and applications of Linked Lists?
3. Write a program to print the elements in a reverse order in a singly linked list.
4. Write a program to implement stack using a linked list.
5. Explain about the implementation of operations on linked queue.
6. Write an algorithm to reverse a given singly linked list.
7. What are the advantages of doubly linked list over singly linked list? Explain the
applications Of doubly linked lists?
8. What are the operations of a singly linked list? Discuss. (READ THE INSERTION,
DELETION, TRAVERSE AND SEARCH OPEARIONS WITH NEAT PICTORIAL
REPRESENTATIONS).
9. Write a program to implement circular linked list.
10. How do you perform insertion and deletion operations in double linked list? Explain with
Examples.
UNIT - IV
Please read the 5th unit completely with graph terminology, algorithms and solve one or
two random problems to understand the concepts.