Professional Documents
Culture Documents
Bhagwan Mahavir College of Engg & Technology Subject: - Analysis and Design of Algorithms. Subject Code:-3150703 Semester: 5 Dept:Ce
Bhagwan Mahavir College of Engg & Technology Subject: - Analysis and Design of Algorithms. Subject Code:-3150703 Semester: 5 Dept:Ce
ASSIGNMENT - 4
1. What is the basic idea behind Rabin – Karp algorithm? What is expected
running time of this algorithm? Explain it with example.
2. What is Finite Automata? How it can be used in string matching.
3. Define P, NP, NP complete and NP-hard problems.
4. Explain travelling salesman problem. Prove that it is NP complete problem.
5. Explain naïve string matching algorithm with example.
6. State whether Hamiltonian problem is a NP-Complete problem? Justify your
answer.
7. Explain Class of problems beyond NP – P SPACE .