Natchatran

NATCHATRAN

Natchatran Blogs includes Technical Tutorials, E-books, Notes, Lab Manual, Question Banks, Viva questions and Interview questions for engineering students, provides all study material for cse students.

-Natchatran(Prem Anandh.J)

Showing posts with label DAA. Show all posts
Showing posts with label DAA. Show all posts

Monday, December 30, 2013

DAA - Important Questions

CS 2251 DESIGN AND ANALYSIS OF ALGORITHMS

IMPORTANT QUESTIONS

UNIT-II

Part A:
1.      What is the use of asymptotic notations?
2.      What are the properties of Big-Oh Notations?
3.      What is the idea behind binary search?
4.      What are the metrics that are used to measure the complexity of an algorithm?
5.      What is a Conditional Asymptotic notation?
6.      What kind of problems can be best solved using divide & conquer method.
7.      Define Recurrence equation. Give 1 example.
8.      How divide & conquer algorithms are implemented?
9.      Show that O(f(n)+O(g(n))=O(max{f(n),g(n)}
10.  What is the need for an algorithm analysis?

Part B:
1.      Develop an algorithm for binary search? Illustrate how best,Avg,Worst case complexities of binary search can be computed.(16)
2.      Explain the recursive function for finding the Maximum & Minimum of set of n elements& Find the Number of comparisons needed.(16)
3.      Apply the Merge sort algorithm for the following data set
999,45,12,99,65,43,121,21,122,32,44,55,77,66,11,222. Illustrate each step of algorithm.(16)
UNIT-II
Part A:

1.      What are the limitations of greedy algorithms?
2.      For what type of problems greedy algorithms are best suited?
3.      What is meant by greedy algorithm?
4.      Give the applications of greedy algorithms.
5.      Write down the advantages & disadvantages of greedy algorithms.
6.      What is meant by container loading?
7.      Give the greedy solution for container loading.
8.      Write down the analysis of container loading algorithm.
9.      Define Knapsack Problem.
10.  Define Fractional & 0/1 Knapsack Problem.

Part B:
1.      Solve the Container Loading Problem using Greedy Technique.(16)
2.      Explain Knapsack problem using Greedy Technique with example.(16)
UNIT III
Part A:
1.      What is multistage graph?
2.      What are optimal binary search trees?
3.      State the principles behind dynamic programming?
4.      State the travelling sales man problem.
5.      What in meant by All Pairs shortest path problem & How it is represented?
6.      Differentiate greedy method & dynamic programming.
7.      Differentiate divide & conquer & dynamic programming.
8.      Give an application of dynamic programming.
9.      Write the formula for Cost (I,j) of a multistage graph in forward & backward approach.
10.  Give the formula for All Pairs shortest path problem.
Part B:
1.      What is Dynamic programming? Apply this technique to find All Pairs shortest path in a graph.(16)
2.      Explain the multistage graph with either forward approach or backward approach.(16)
3.      Explain the travelling sales man problem and apply dynamic programming to solve it.(16)
4.      Explain Optimal binary Search trees using dynamic programming.(16)
5.      Explain about 0/1 Knapsack problem using dynamic programming.(16)
6.      What is Dynamic programming? Apply this technique to find All Pairs shortest path in a graph
                                                         UNIT IV
PART A:
1.      What is graph coloring problem?
2.      What is Hamiltonian path?
3.      What are solution states?
4.      Define a planar graph.
5.      Give the categories of the problem in backtracking?
6.      Define decision, optimization & enumeration problem.
7.      List out the application of backtracking.
8.      Define explicit & implicit constraints.
9.      Define state space tree.
10.  Define dead node.
PART B:
1.      Explain how backtracking technique works & apply it to 8Queens problem.(16)
OR
2.      Explain how sum of subsets is computed using backtracking technique with an example.(16)
3.      Explain Hamiltonian cycles & Explain the function to find as Hamiltonian cycles of a graph.(16)
OR
4.      What is Knapsack problem? Explain how backtracking technique is used to solve Knapsack problem.(16)

                                                          UNIT V
PART A:
1.      What is spanning trees?
2.      When is problem called to be NP-Hard?
3.      What are Biconnected components?
4.      List the two properties that must be satisfied by a problem L to be NP complete.
5.      What is nondeterministic polynomial time?
6.      Define Articulation point.
7.      List out the types of branch & bound technique.
8.      List out the types of graph.
9.      List out the types of graph traversal.
10.  Difference between DFS & BFS.
PART B:
1.      Explain the graph traversal algorithms with an example.(16)
OR
2.      What is the idea behind branch & bound technique? Explain how this technique is applied for global optimization problems? (16)
3.      Explain the tech used to find minimal spanning tree  & biconnected components with an example.(16)
OR
4.      What is the idea behind branch & bound technique? Explain how this technique is applied for knapsack problem.(16)



Tuesday, November 19, 2013

CS 2251 DESIGN AND ANALYSIS OF ALGORITHMS - Syllabus

CS 2251 DESIGN AND ANALYSIS OF ALGORITHMS - Syllabus
L T P C
3 1 0 4

UNIT I                       9
Algorithm Analysis – Time Space Tradeoff – Asymptotic Notations – Conditional
asymptotic notation – Removing condition from the conditional asymptotic notation -
Properties of big-Oh notation – Recurrence equations – Solving recurrence equations –
Analysis of linear search.

UNIT II          9
Divide and Conquer: General Method – Binary Search – Finding Maximum and Minimum
– Merge Sort – Greedy Algorithms: General Method – Container Loading – Knapsack
Problem.

UNIT III        9
Dynamic Programming: General Method – Multistage Graphs – All-Pair shortest paths –
Optimal binary search trees – 0/1 Knapsack – Travelling salesperson problem .

UNIT IV        9
Backtracking: General Method – 8 Queens problem – sum of subsets – graph coloring –
Hamiltonian problem – knapsack problem.

UNIT V          9
Graph Traversals – Connected Components – Spanning Trees – Biconnected
components – Branch and Bound: General Methods (FIFO & LC) – 0/1 Knapsack
problem – Introduction to NP-Hard and NP-Completeness.

TUTORIAL= 15, TOTAL: 60 PERIODS

TEXT BOOKS:
1. Ellis Horowitz, Sartaj Sahni and Sanguthevar Rajasekaran, Computer Algorithms/
C++, Second Edition, Universities Press, 2007. (For Units II to V)
2. K.S. Easwarakumar, Object Oriented Data Structures using C++, Vikas Publishing
House pvt. Ltd., 2000 (For Unit I)

REFERENCES:
1. T. H. Cormen, C. E. Leiserson, R.L.Rivest, and C. Stein, "Introduction to Algorithms",
Second Edition, Prentice Hall of India Pvt. Ltd, 2003.
2. Alfred V. Aho, John E. Hopcroft and Jeffrey D. Ullman, "The Design and Analysis of

Computer Algorithms", Pearson Education, 1999.