Practice Question of ADA
Practice Question of ADA
Note: It's just a practice set. You will find similar questions, not exact ones. So, practice as much as you
can.
1. Write a short note on Asymptotic Notations and write down their properties
2. What a short note on Data structure, Algorithm, Pseudocode and programming
3. Explain different types of algorithmic approaches and What are the steps you will follow to design an
algorithm
4. Write down the pseudocode of the factorial of n numbers and create the best-case and worst-case
recurrence relation.
5. Compare merge sort, quick sort, and heap sort
6. Arrange the following functions in increasing asymptotic order:
vi)
18. Write down the pseudocode of the Naïve string matching problem and apply both naïve and KMP to
find how many comparisons are required to find the match in the given text and pattern
Text: AACBBABXYABBACAYXACABAAXBYACBYAAXBAA
Pattern: CABAAXBYA