Aa 2017-18
Aa 2017-18
com
M. TECH.
(SEM -I) THEORY EXAMINATION 2017-18
ADVANCED ALGORITHM
Time: 3 Hours Total Marks: 70
Note: Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
c. What steps are used in Dynamic programming Approach? Discuss the 0/1 knapsack
problem with respect to dynamic programming is greedy method equality applicable for
the above problem?
e. What are P, NP, NPC and NPH problems? Explain with examples.
www.aktuonline.com
www.aktuonline.com
SECTION C
3. Attempt any one part of the following: 7x1=7
(a). Apply greedy approach to an activity-selection problem of scheduling several
competing activities that require exclusive use of common resources, with a goal of
selecting a maximum size set of mutually compatible activities.
(b) What is parallel searching? And also explain the CREW searching?
4. Attempt any one part of the following: 7x1=7
(a). What are the advantages of Red Black Tree over Binary Search Tree? Write
algorithms to insert a key in a red black tree. Insert the following sequence of
information in an empty red black tree 1, 2,3,4,5,5.
(b). Describe the depth first search and breadth first search algorithm with examples.
5. Attempt any one part of the following: 7x1=7
(a). What are the factors performance measures of Parallel Algorithm?
(b). Shown the results of inserting the keys F,S,Q,K,C,L, H,T,V,W, M,R,N in order
into an Empty B-tree with minimum degree 2.
6. Attempt any one part of the following: 7x1=7
(a). Write Dijkstra’s algorithm for single source shortest paths. How can it be used
for solving all pairs shortest paths problem?
www.aktuonline.com
(b). Differentiate between Backtracking and Branch and Bound technique. Write an
algorithm for Sum of subset using backtracking Approach. Find All possible solution
for M=30 , write complete state space representation for given values.
S =< 1,2,5,7, 8 10, 15, 20, 25 >.
www.aktuonline.com