SlideShare a Scribd company logo
Code No: R05220502                                            Set No. 1
      II B.Tech II Semester Regular Examinations, Apr/May 2008
              DESIGN AND ANALYSIS OF ALGORITHMS
                   (Computer Science & Engineering)
Time: 3 hours                                         Max Marks: 80
                      Answer any FIVE Questions
                     All Questions carry equal marks
                                 ⋆⋆⋆⋆⋆


  1. (a) Describe the performance analysis in detail.
     (b) Show that f1 (n)+f2 (n) = 0(max(g1 (n), g2 (n)) where f1 (n) = 0(g1 (n)) and f2 (n) =
         0(g2 (n)).                                                                [8+8]

  2. (a) Explain the strassen’s matrix multiplication.
     (b) Write deletion algorithm, of Binary search tree.                          [8+8]

  3. (a) Write Greedy algorithm to generate shortest path.
     (b) If p1 /w1 ≥ p2 /w2 ......... ≥ pn /wn prove that knapsack generates an optimal
         solution to the given instance of the knapsack problem.                  [8+8]

  4. (a) Explain matrix chain multiplication with an example.
     (b) Solve the following 0/1 Knapsack problem using dynamic programming
         P=(11,21,31,33), W=(2,11,22,15), C=40, n=4.                        [8+8]

  5. (a) Explain the properties of strongly connected components.
     (b) Write a non-recursive algorithm of In-order traversal of a tree and also analyze
         its time complexity.                                                      [6+10]

  6. (a) Write an algorithm of m-coloring problem.
     (b) Solve the 4-queens problem using backtracking.                            [8+8]

  7. (a) Describe problem state, solution state and answer state with an example.
     (b) Explain the general method of Branch and Bound.                           [8+8]

  8. (a) Explain the classes of P and NP.
     (b) Write a nondeterministic Knapsack algorithm.                              [8+8]


                                       ⋆⋆⋆⋆⋆




                                        1 of 1
Code No: R05220502                                                 Set No. 2
      II B.Tech II Semester Regular Examinations, Apr/May 2008
              DESIGN AND ANALYSIS OF ALGORITHMS
                   (Computer Science & Engineering)
Time: 3 hours                                         Max Marks: 80
                      Answer any FIVE Questions
                     All Questions carry equal marks
                                 ⋆⋆⋆⋆⋆


  1. (a) Define time complexity. Describe different notations used to represent there
         complexities.
      (b) Derive the function f(n)= 12n2 +6n is 0(n3 ) and w(n).                       [10+6]

  2. (a) Suppose a binary tree has leaves ℓ1 ℓ2 .......lm at depths d1 , d2 ....dm respectively
                       m
          prove that         2−di ≤ 1 and determine when the equality is true.
                       i=1

      (b) Write and explain the control abstraction algorithm of divide and conquer.
                                                                                [8+8]

  3. (a) Write a greedy algorithm to the Job sequencing with deadlines.
      (b) Prove that the edge with the smallest weight will be part of every minimum
          spanning tree.                                                        [8+8]

  4. (a) Explain matrix chain multiplication with an example.
      (b) Solve the following 0/1 Knapsack problem using dynamic programming
          P=(11,21,31,33), W=(2,11,22,15), C=40, n=4.                        [8+8]

  5. (a) Explain the BFS algorithm with an example.
      (b) The Preorder and Postorder sequences of a binary tree do not uniquely define
          the binary tree. Justify the answer.                                  [8+8]

  6. (a) Describe graph coloring problem and its time complexity.
      (b) Write an algorithm of 8-queens problem using backtracking.                     [8+8]

  7. (a) Write an algorithm to solve the Knapsack problem with the Branch and Bound
      (b) Differentiate between Dynamic Knapsack and Branch and Bound Knapsack
          problem.                                                     [10+6]

  8. (a) Explain the classes of P and NP.
      (b) Write a nondeterministic Knapsack algorithm.                                   [8+8]


                                           ⋆⋆⋆⋆⋆




                                            1 of 1
Code No: R05220502                                                 Set No. 3
      II B.Tech II Semester Regular Examinations, Apr/May 2008
              DESIGN AND ANALYSIS OF ALGORITHMS
                   (Computer Science & Engineering)
Time: 3 hours                                         Max Marks: 80
                      Answer any FIVE Questions
                     All Questions carry equal marks
                                 ⋆⋆⋆⋆⋆


  1. (a) Consider a polynomial in n of the form
                    m
          f (n) =         ai ni . = am nm + am−1 nm−1 + ..... + a2 n2 + a1 n + a0 where am > 0
                    i=0
          then f (n) = Ω (nm )
     (b) Differentiate between profilling and debugging.                                 [10+6]

  2. (a) Write and explain the control abstraction for Divide and conquer.
     (b) Suggest refinements to mergesort to make it in-place.                           [8+8]

  3. State whether the following statements are true or false. Justify the answer.

     (a) If e is a minimum weight edge in a connected weighted graph, it must be
         among edges of at least one minimum spanning tree of the graph.
     (b) If e is a minimum weight edge in a connected weighted graph, it must be
         among edges of each minimum spanning tree of the graph.
      (c) If edge weights of a connected weighted graph are all distinct, the graph must
          have exactly are minimum spanning tree.
     (d) If edge weights of a connected weighted graph are not all distinct, the graph
         must have more than one minimum spanning tree.                            [16]

  4. (a) In how many ways, the following chain of matrices may be multiplied?
         A     X      B     X       C      X     D
         [2X5]       [5X3]        [3X6]        [6X4]
         Find the no. of multiplications required in each case.
     (b) Differentiate between Greedy method and Dynamic programming
      (c) Define merging and purging rules of O/1 Knapsack problem.                   [6+5+5]

  5. (a) Explain game tree with an example.
     (b) Prove or disprove an undirected graph G=(V,E) is biconnected if and only if
         for each pair of distinct vertices u and v there are two distinct paths from u
         to v that have no vertex in common except u and v.                        [8+8]

  6. (a) Draw the state space tree for m coloring when n=3 and m=3
     (b) Write a recursive backtracking algorithm.                                      [8+8]

  7. (a) Explain the general method of Branch and Bound.


                                             1 of 2
Code No: R05220502                                          Set No. 3
     (b) Explain the principles of LIFO Branch and Bound.                      [8+8]

  8. (a) Explain the classes of NP-hard and NP-complete.
     (b) Describe clique decision problem and write the algorithm for the same. [8+8]


                                     ⋆⋆⋆⋆⋆




                                      2 of 2
Code No: R05220502                                            Set No. 4
      II B.Tech II Semester Regular Examinations, Apr/May 2008
              DESIGN AND ANALYSIS OF ALGORITHMS
                   (Computer Science & Engineering)
Time: 3 hours                                         Max Marks: 80
                      Answer any FIVE Questions
                     All Questions carry equal marks
                                 ⋆⋆⋆⋆⋆

                                                                              2   √
  1. (a) Develop a probabilistic algorithm to find the value of the integral           4 − x2 dx
                                                                              0

     (b) Differentiate between priori analysis and posteriori analysis.                  [10+6]

  2. (a) Write and explain the control abstraction for Divide and conquer.
     (b) Suggest refinements to mergesort to make it in-place.                            [8+8]

  3. (a) What is spanning tree? Explain the prim’s algorithm with an example.
     (b) Explain the terms Feasible solution, optimal solution and objective function.
                                                                                [10+6]

  4. (a) Write a pseudocode for a linear time algorithm that generates the optimal
         Binary search tree from the root table.
     (b) Find the minimum no of operations required for the following chain matrix
         multiplication using dynamic programming.
         A(30,40) * B(40,5) * C(5,15) * D(15,6).                             [8+8]

  5. Write an algorithm of Biconnected components and also analyze its time complex-
     ity.                                                                      [16]

  6. (a) Draw the state space tree for m coloring when n=3 and m=3
     (b) Write a recursive backtracking algorithm.                                       [8+8]

  7. (a) Explain the method of reduction to solve TSP problem using Branch and
         Bound.
     (b) Explain the principles of FIFO Branch and Bound.                                [8+8]

  8. (a) What is meant by Halting problem explain with an example.
     (b) Explain the classes of P and NP.                                                [8+8]


                                        ⋆⋆⋆⋆⋆




                                         1 of 1

More Related Content

What's hot

M A T H E M A T I C S I I I J N T U M O D E L P A P E R{Www
M A T H E M A T I C S  I I I  J N T U  M O D E L  P A P E R{WwwM A T H E M A T I C S  I I I  J N T U  M O D E L  P A P E R{Www
M A T H E M A T I C S I I I J N T U M O D E L P A P E R{Wwwguest3f9c6b
 
gate-Cs 2000
gate-Cs 2000gate-Cs 2000
gate-Cs 2000
Ravi Rajput
 
C O M P U T E R G R A P H I C S J N T U M O D E L P A P E R{Www
C O M P U T E R  G R A P H I C S  J N T U  M O D E L  P A P E R{WwwC O M P U T E R  G R A P H I C S  J N T U  M O D E L  P A P E R{Www
C O M P U T E R G R A P H I C S J N T U M O D E L P A P E R{Wwwguest3f9c6b
 
Gate-Cs 1993
Gate-Cs 1993Gate-Cs 1993
Gate-Cs 1993
Ravi Rajput
 
CS 354 Final Exam Review
CS 354 Final Exam ReviewCS 354 Final Exam Review
CS 354 Final Exam Review
Mark Kilgard
 
Triggering patterns of topology changes in dynamic attributed graphs
Triggering patterns of topology changes in dynamic attributed graphsTriggering patterns of topology changes in dynamic attributed graphs
Triggering patterns of topology changes in dynamic attributed graphs
INSA Lyon - L'Institut National des Sciences Appliquées de Lyon
 
C programming session 05
C programming session 05C programming session 05
C programming session 05AjayBahoriya
 
Skiena algorithm 2007 lecture15 backtracing
Skiena algorithm 2007 lecture15 backtracingSkiena algorithm 2007 lecture15 backtracing
Skiena algorithm 2007 lecture15 backtracingzukun
 
2015 16combinepdf
2015 16combinepdf2015 16combinepdf
2015 16combinepdf
madhesi
 
20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilersComputer Science Club
 
D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...guest3f9c6b
 
Gaussian Processes: Applications in Machine Learning
Gaussian Processes: Applications in Machine LearningGaussian Processes: Applications in Machine Learning
Gaussian Processes: Applications in Machine Learningbutest
 
C O N T R O L S Y S T E M S J N T U M O D E L P A P E R{Www
C O N T R O L  S Y S T E M S  J N T U  M O D E L  P A P E R{WwwC O N T R O L  S Y S T E M S  J N T U  M O D E L  P A P E R{Www
C O N T R O L S Y S T E M S J N T U M O D E L P A P E R{Wwwguest3f9c6b
 
212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml
guestd436758
 

What's hot (17)

M A T H E M A T I C S I I I J N T U M O D E L P A P E R{Www
M A T H E M A T I C S  I I I  J N T U  M O D E L  P A P E R{WwwM A T H E M A T I C S  I I I  J N T U  M O D E L  P A P E R{Www
M A T H E M A T I C S I I I J N T U M O D E L P A P E R{Www
 
gate-Cs 2000
gate-Cs 2000gate-Cs 2000
gate-Cs 2000
 
C O M P U T E R G R A P H I C S J N T U M O D E L P A P E R{Www
C O M P U T E R  G R A P H I C S  J N T U  M O D E L  P A P E R{WwwC O M P U T E R  G R A P H I C S  J N T U  M O D E L  P A P E R{Www
C O M P U T E R G R A P H I C S J N T U M O D E L P A P E R{Www
 
Gate-Cs 1993
Gate-Cs 1993Gate-Cs 1993
Gate-Cs 1993
 
CS 354 Final Exam Review
CS 354 Final Exam ReviewCS 354 Final Exam Review
CS 354 Final Exam Review
 
Q
QQ
Q
 
Triggering patterns of topology changes in dynamic attributed graphs
Triggering patterns of topology changes in dynamic attributed graphsTriggering patterns of topology changes in dynamic attributed graphs
Triggering patterns of topology changes in dynamic attributed graphs
 
C programming session 05
C programming session 05C programming session 05
C programming session 05
 
Skiena algorithm 2007 lecture15 backtracing
Skiena algorithm 2007 lecture15 backtracingSkiena algorithm 2007 lecture15 backtracing
Skiena algorithm 2007 lecture15 backtracing
 
2015 16combinepdf
2015 16combinepdf2015 16combinepdf
2015 16combinepdf
 
20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers20101017 program analysis_for_security_livshits_lecture02_compilers
20101017 program analysis_for_security_livshits_lecture02_compilers
 
D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...D A T A B A S E M A N A G E M E N T S Y S T E M S  J N T U  M O D E L  P A P ...
D A T A B A S E M A N A G E M E N T S Y S T E M S J N T U M O D E L P A P ...
 
Gaussian Processes: Applications in Machine Learning
Gaussian Processes: Applications in Machine LearningGaussian Processes: Applications in Machine Learning
Gaussian Processes: Applications in Machine Learning
 
C O N T R O L S Y S T E M S J N T U M O D E L P A P E R{Www
C O N T R O L  S Y S T E M S  J N T U  M O D E L  P A P E R{WwwC O N T R O L  S Y S T E M S  J N T U  M O D E L  P A P E R{Www
C O N T R O L S Y S T E M S J N T U M O D E L P A P E R{Www
 
Ads
AdsAds
Ads
 
212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml
 
Np cooks theorem
Np cooks theoremNp cooks theorem
Np cooks theorem
 

Similar to Daa q.paper

Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}
Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}
Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}guest3f9c6b
 
Automata And Compiler Design
Automata And Compiler DesignAutomata And Compiler Design
Automata And Compiler Design
guestac67362
 
05211201 A D V A N C E D D A T A S T R U C T U R E S A N D A L G O R I...
05211201  A D V A N C E D  D A T A  S T R U C T U R E S   A N D   A L G O R I...05211201  A D V A N C E D  D A T A  S T R U C T U R E S   A N D   A L G O R I...
05211201 A D V A N C E D D A T A S T R U C T U R E S A N D A L G O R I...
guestd436758
 
05211201 Advanced Data Structures And Algorithms
05211201 Advanced Data Structures  And  Algorithms05211201 Advanced Data Structures  And  Algorithms
05211201 Advanced Data Structures And Algorithms
guestac67362
 
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
3rd Semester Computer Science and Engineering  (ACU-2022) Question papers3rd Semester Computer Science and Engineering  (ACU-2022) Question papers
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Digital logic design1
Digital logic design1Digital logic design1
Digital logic design1
jntuworld
 
212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml
guestac67362
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Control Systems Jntu Model Paper{Www.Studentyogi.Com}
Control Systems Jntu Model Paper{Www.Studentyogi.Com}Control Systems Jntu Model Paper{Www.Studentyogi.Com}
Control Systems Jntu Model Paper{Www.Studentyogi.Com}guest3f9c6b
 
M A T H E M A T I C A L M E T H O D S J N T U M O D E L P A P E R{Www
M A T H E M A T I C A L  M E T H O D S  J N T U  M O D E L  P A P E R{WwwM A T H E M A T I C A L  M E T H O D S  J N T U  M O D E L  P A P E R{Www
M A T H E M A T I C A L M E T H O D S J N T U M O D E L P A P E R{Wwwguest3f9c6b
 
Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}
Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}
Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}guest3f9c6b
 
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
D I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{WwwD I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{Www
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Wwwguest3f9c6b
 
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
guest3f9c6b
 
Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}
Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}
Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}
guest3f9c6b
 
210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science
guestac67362
 
210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science
guestd436758
 
Mathematicalfoundationofcomputerscience
MathematicalfoundationofcomputerscienceMathematicalfoundationofcomputerscience
Mathematicalfoundationofcomputerscience
jntuworld
 

Similar to Daa q.paper (20)

Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}
Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}
Computer Graphics Jntu Model Paper{Www.Studentyogi.Com}
 
Automata And Compiler Design
Automata And Compiler DesignAutomata And Compiler Design
Automata And Compiler Design
 
C g.2010 supply
C g.2010 supplyC g.2010 supply
C g.2010 supply
 
05211201 A D V A N C E D D A T A S T R U C T U R E S A N D A L G O R I...
05211201  A D V A N C E D  D A T A  S T R U C T U R E S   A N D   A L G O R I...05211201  A D V A N C E D  D A T A  S T R U C T U R E S   A N D   A L G O R I...
05211201 A D V A N C E D D A T A S T R U C T U R E S A N D A L G O R I...
 
05211201 Advanced Data Structures And Algorithms
05211201 Advanced Data Structures  And  Algorithms05211201 Advanced Data Structures  And  Algorithms
05211201 Advanced Data Structures And Algorithms
 
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
3rd Semester Computer Science and Engineering  (ACU-2022) Question papers3rd Semester Computer Science and Engineering  (ACU-2022) Question papers
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
 
Cs 73
Cs 73Cs 73
Cs 73
 
Digital logic design1
Digital logic design1Digital logic design1
Digital logic design1
 
212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml212101 Object Oriented Analysis Design Through Uml
212101 Object Oriented Analysis Design Through Uml
 
Ooad q.papers
Ooad q.papersOoad q.papers
Ooad q.papers
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
 
Control Systems Jntu Model Paper{Www.Studentyogi.Com}
Control Systems Jntu Model Paper{Www.Studentyogi.Com}Control Systems Jntu Model Paper{Www.Studentyogi.Com}
Control Systems Jntu Model Paper{Www.Studentyogi.Com}
 
M A T H E M A T I C A L M E T H O D S J N T U M O D E L P A P E R{Www
M A T H E M A T I C A L  M E T H O D S  J N T U  M O D E L  P A P E R{WwwM A T H E M A T I C A L  M E T H O D S  J N T U  M O D E L  P A P E R{Www
M A T H E M A T I C A L M E T H O D S J N T U M O D E L P A P E R{Www
 
Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}
Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}
Databasemanagementsystems Jntu Model Paper{Www.Studentyogi.Com}
 
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
D I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{WwwD I G I T A L  I C  A P P L I C A T I O N S  J N T U  M O D E L  P A P E R{Www
D I G I T A L I C A P P L I C A T I O N S J N T U M O D E L P A P E R{Www
 
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
Digital Ic Applications Jntu Model Paper{Www.Studentyogi.Com}
 
Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}
Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}
Linear and discrete systems analysis Jntu Model Paper{Www.Studentyogi.Com}
 
210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science
 
210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science210502 Mathematical Foundation Of Computer Science
210502 Mathematical Foundation Of Computer Science
 
Mathematicalfoundationofcomputerscience
MathematicalfoundationofcomputerscienceMathematicalfoundationofcomputerscience
Mathematicalfoundationofcomputerscience
 

More from swapnil shinde

Ir classification association
Ir classification associationIr classification association
Ir classification association
swapnil shinde
 
Network analysis q.papers
Network analysis q.papersNetwork analysis q.papers
Network analysis q.papersswapnil shinde
 
Sw project mgmn q.papers
Sw project mgmn q.papersSw project mgmn q.papers
Sw project mgmn q.papersswapnil shinde
 

More from swapnil shinde (7)

Ir classification association
Ir classification associationIr classification association
Ir classification association
 
Be
BeBe
Be
 
Be it
Be itBe it
Be it
 
S.e 2003
S.e 2003S.e 2003
S.e 2003
 
Network analysis q.papers
Network analysis q.papersNetwork analysis q.papers
Network analysis q.papers
 
Sw project mgmn q.papers
Sw project mgmn q.papersSw project mgmn q.papers
Sw project mgmn q.papers
 
Se oct2011
Se oct2011Se oct2011
Se oct2011
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 

Recently uploaded (20)

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 

Daa q.paper

  • 1. Code No: R05220502 Set No. 1 II B.Tech II Semester Regular Examinations, Apr/May 2008 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Describe the performance analysis in detail. (b) Show that f1 (n)+f2 (n) = 0(max(g1 (n), g2 (n)) where f1 (n) = 0(g1 (n)) and f2 (n) = 0(g2 (n)). [8+8] 2. (a) Explain the strassen’s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8] 3. (a) Write Greedy algorithm to generate shortest path. (b) If p1 /w1 ≥ p2 /w2 ......... ≥ pn /wn prove that knapsack generates an optimal solution to the given instance of the knapsack problem. [8+8] 4. (a) Explain matrix chain multiplication with an example. (b) Solve the following 0/1 Knapsack problem using dynamic programming P=(11,21,31,33), W=(2,11,22,15), C=40, n=4. [8+8] 5. (a) Explain the properties of strongly connected components. (b) Write a non-recursive algorithm of In-order traversal of a tree and also analyze its time complexity. [6+10] 6. (a) Write an algorithm of m-coloring problem. (b) Solve the 4-queens problem using backtracking. [8+8] 7. (a) Describe problem state, solution state and answer state with an example. (b) Explain the general method of Branch and Bound. [8+8] 8. (a) Explain the classes of P and NP. (b) Write a nondeterministic Knapsack algorithm. [8+8] ⋆⋆⋆⋆⋆ 1 of 1
  • 2. Code No: R05220502 Set No. 2 II B.Tech II Semester Regular Examinations, Apr/May 2008 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Define time complexity. Describe different notations used to represent there complexities. (b) Derive the function f(n)= 12n2 +6n is 0(n3 ) and w(n). [10+6] 2. (a) Suppose a binary tree has leaves ℓ1 ℓ2 .......lm at depths d1 , d2 ....dm respectively m prove that 2−di ≤ 1 and determine when the equality is true. i=1 (b) Write and explain the control abstraction algorithm of divide and conquer. [8+8] 3. (a) Write a greedy algorithm to the Job sequencing with deadlines. (b) Prove that the edge with the smallest weight will be part of every minimum spanning tree. [8+8] 4. (a) Explain matrix chain multiplication with an example. (b) Solve the following 0/1 Knapsack problem using dynamic programming P=(11,21,31,33), W=(2,11,22,15), C=40, n=4. [8+8] 5. (a) Explain the BFS algorithm with an example. (b) The Preorder and Postorder sequences of a binary tree do not uniquely define the binary tree. Justify the answer. [8+8] 6. (a) Describe graph coloring problem and its time complexity. (b) Write an algorithm of 8-queens problem using backtracking. [8+8] 7. (a) Write an algorithm to solve the Knapsack problem with the Branch and Bound (b) Differentiate between Dynamic Knapsack and Branch and Bound Knapsack problem. [10+6] 8. (a) Explain the classes of P and NP. (b) Write a nondeterministic Knapsack algorithm. [8+8] ⋆⋆⋆⋆⋆ 1 of 1
  • 3. Code No: R05220502 Set No. 3 II B.Tech II Semester Regular Examinations, Apr/May 2008 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 1. (a) Consider a polynomial in n of the form m f (n) = ai ni . = am nm + am−1 nm−1 + ..... + a2 n2 + a1 n + a0 where am > 0 i=0 then f (n) = Ω (nm ) (b) Differentiate between profilling and debugging. [10+6] 2. (a) Write and explain the control abstraction for Divide and conquer. (b) Suggest refinements to mergesort to make it in-place. [8+8] 3. State whether the following statements are true or false. Justify the answer. (a) If e is a minimum weight edge in a connected weighted graph, it must be among edges of at least one minimum spanning tree of the graph. (b) If e is a minimum weight edge in a connected weighted graph, it must be among edges of each minimum spanning tree of the graph. (c) If edge weights of a connected weighted graph are all distinct, the graph must have exactly are minimum spanning tree. (d) If edge weights of a connected weighted graph are not all distinct, the graph must have more than one minimum spanning tree. [16] 4. (a) In how many ways, the following chain of matrices may be multiplied? A X B X C X D [2X5] [5X3] [3X6] [6X4] Find the no. of multiplications required in each case. (b) Differentiate between Greedy method and Dynamic programming (c) Define merging and purging rules of O/1 Knapsack problem. [6+5+5] 5. (a) Explain game tree with an example. (b) Prove or disprove an undirected graph G=(V,E) is biconnected if and only if for each pair of distinct vertices u and v there are two distinct paths from u to v that have no vertex in common except u and v. [8+8] 6. (a) Draw the state space tree for m coloring when n=3 and m=3 (b) Write a recursive backtracking algorithm. [8+8] 7. (a) Explain the general method of Branch and Bound. 1 of 2
  • 4. Code No: R05220502 Set No. 3 (b) Explain the principles of LIFO Branch and Bound. [8+8] 8. (a) Explain the classes of NP-hard and NP-complete. (b) Describe clique decision problem and write the algorithm for the same. [8+8] ⋆⋆⋆⋆⋆ 2 of 2
  • 5. Code No: R05220502 Set No. 4 II B.Tech II Semester Regular Examinations, Apr/May 2008 DESIGN AND ANALYSIS OF ALGORITHMS (Computer Science & Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆⋆⋆⋆⋆ 2 √ 1. (a) Develop a probabilistic algorithm to find the value of the integral 4 − x2 dx 0 (b) Differentiate between priori analysis and posteriori analysis. [10+6] 2. (a) Write and explain the control abstraction for Divide and conquer. (b) Suggest refinements to mergesort to make it in-place. [8+8] 3. (a) What is spanning tree? Explain the prim’s algorithm with an example. (b) Explain the terms Feasible solution, optimal solution and objective function. [10+6] 4. (a) Write a pseudocode for a linear time algorithm that generates the optimal Binary search tree from the root table. (b) Find the minimum no of operations required for the following chain matrix multiplication using dynamic programming. A(30,40) * B(40,5) * C(5,15) * D(15,6). [8+8] 5. Write an algorithm of Biconnected components and also analyze its time complex- ity. [16] 6. (a) Draw the state space tree for m coloring when n=3 and m=3 (b) Write a recursive backtracking algorithm. [8+8] 7. (a) Explain the method of reduction to solve TSP problem using Branch and Bound. (b) Explain the principles of FIFO Branch and Bound. [8+8] 8. (a) What is meant by Halting problem explain with an example. (b) Explain the classes of P and NP. [8+8] ⋆⋆⋆⋆⋆ 1 of 1