ADA MOD 5 Question Bank ?
ADA MOD 5 Question Bank ?
need to be asked by any algorithm in the worst case. This example illustrates the adversary
method for establishing lower bounds.
Find the most valuable subset of n items of given positive integer weights and values
that fit into a knapsack of a given positive integer capacity.
19. Define Class NP-Hard. / List out the properties of NP-Hard Problems. ®
32 CS6402 DESIGN AND ANALYSIS OF ALGORITHM 2 mark Q&A
A problem is NP-hard if an algorithm for solving it can be translated into one for solving
any NP-problem (nondeterministic polynomial time) problem. Therefore NP-hard means "at
least as hard as any NP-problem," although it might, in fact, be harder.
There are no polynomial-time algorithms for NP-hard problems.
Traveling salesman and knapsack problems are NP-hard problems.
Examples:
Capacitated minimum spanning tree, Route inspection problem (also called Chinese postman
problem), Clique problem, Maximum independent set, Minimum spanning tree, Complete
coloring, Bandwidth problem, Clique cover problem, Graph homomorphism problem, Graph
coloring, Graph partition into subgraphs of specific types (triangles, isomorphic subgraphs,
Hamiltonian subgraphs, forests, perfect matchings) are known NP-complete.
28. List out coping techniques with the Limitations of Algorithm Power.
Backtracking
n-Queens Problem
Hamiltonian Circuit Problem
Subset-Sum Problem
Branch-and-Bound
Assignment Problem
Knapsack Problem
Traveling Salesman Problem
Approximation Algorithms for NP-Hard Problems
Approximation Algorithms for the Traveling Salesman Problem
Approximation Algorithms for the Knapsack Problem
Algorithms for Solving Nonlinear Equations
Bisection Method
False Position Method
Newton’s Method
37. Give the upper bound and lower bound of matrix multiplication algorithm?
Upper bound: The given algorithm does n*n*n multiplication hence at most n*n*n
multiplication are necessary. Lower bound: It has been proved in the literature that at least
n*n multiplication are necessary.
40. What are the additional items are required for branch and bound compare to
backtracking technique?
Compared to backtracking, branch and bound requires 2 additional items.
1) A way to proved , for every node of node of state space tree, a bound on the best value of
the
objective function on any solution that can be obtain d by adding further components to the
partial solution represented by the node.
2) The value of the best solution seen so far.
50. What do you mean by accuracy ratio and performance ratio of approximation
algorithm?
where s is an exact solution to the problem. Alternatively, re(sa) = f (sa)/f (s*) − 1, we can
*
The best (i.e., the smallest) value of c for which inequality holds for all instances of
the problem is called the performance ratio of the algorithm and denoted RA.
51. Differentiate promising and non promising node in a state space tree.
A node is said to be promising if the partial solution is still feasible. Any time the
partial node becomes infeasible the node, called non-promising the branch will no longer be
pursued. So, the algorithm backtracks to the first promising node and explores the other
branches of the state-space tree.