DS VIVA Questions
DS VIVA Questions
1. What is an algorithm?
A sequence of computational steps that transform the input into the output.
8. What is an array?
It is a collection of similar data items that shares a common name.
17. What are the differences between linear search and binary search?
Linear search Binary search
When there are less number of When there are large number of
elements , linear search is the best elements , binary search is the best
method to search. method to search.
Best case is to find the element in Best case is to find the element in
the 1st position. the middle element.
34. What is the difference between linear queue and circular queue?
Linear queue Circular queue
• Breadth-first search
• Depth-first search