Algorithm Questions for Exams
Prepare for semester exams using important questions, numericals, viva questions and unit-wise questions.
U1
Introduction to Algorithm
U2
Advanced Data Structure
U3
Divide and Conquer and Greedy
U4
Dynamic programming
U5
Selected Topics
Unit-wise questions
Unit 1
Open unit →
Introduction to Algorithm
- What is an algorithm? Simple Explanation and Real-Life Example
- Characteristics of an algorithm with examples and explanations
- Complexity of an Algorithm: Time and Space Complexity
- Asymptotic Notations: Big Oh, Big Theta and Big Omega Notation
- Explain Little-oh notation and Little omega notation . Also Discuss relationship between O, o, theta, omega, and omega notation.
- Optimality and Reduction Of Algorithm with Examples
- Explain Master’s Theorem.
- Divide and Conquer Recurrences with Examples
Unit 2
Open unit →
Advanced Data Structure
- What is Red-Black Tree? Write its advantage.
- Write different kinds of rotation in RB Tree.
- Write the property of Red-Black Tree. Show that the longest simple path from a node x in a RB-Tree to a descendants leaf has length at most twice that of the shortest simple path from node x to a descendants leaf.
- Discuss the all cases of insert a node in RB Tree. Also write its algorithm.
- Discuss the all cases of remove a node in RB Tree. Also write its algorithm.
- Explain B-Tree. Write its properties.
- Write the basic operations in B-Tree.
- Explain the delete operation of a node from B-Tree.
Unit 3
Open unit →
Divide and Conquer and Greedy
- What do you mean by Graph Theory? Explain.
- Write a note on Graph and Digraph.
- Explain various data structure for Graphs.
- Write a note on Breadth First Search(BFS).What type of problem you can solve using BFS.
- Write a note on Depth First Search(DFS).What type of problem you can solve using DFS.
- Write a note on Bipartite Graph.
- Explain Topological Sort.
- Discuss Strongly Connected Components with its algorithm.
Unit 4
Open unit →
Dynamic programming
- Write a note on Dynamic programming.
- Write a difference between Dynamic programming and Greedy approach.
- Write the elements of Dynamic programming.
- Explain Matrix-chain multiplication problem and solve it by using Dynamic Programming with one example.
- Explain Longest Common Subsequence. Write its pseudo code for computing the length of LCS.
- Explain knapsack problem. Write its Greedy Solution.
- Explain knapsack problem. Write Dynamic Programming Solution for 0/1 knapscak problem.
- What is optimization problem? How are greedy method can be used to solve the optimization problem?
Unit 5
Open unit →
Selected Topics
- What do you mean by String matching ? Also explain string, sub string and proper sub string.
- Explain Knuth-Morris-Pratt Algorithm and give its analysis.
- Explain Naïve string matching algorithm and also discuss its analysis.
- Discuss the string matching with finite automata.
- Write an algorithm for Rabin-Karp method. Also give a suitable example to explain it.
- What do you mean by Approximation algorithm? Explain.
- Define Vertex cover. What is vertex cover problem? Provide the approximation algorithm for vertex cover problem.
- Explain the vertex cover problem. Also write algorithm for it.