{"id":97,"date":"2018-07-19T05:33:39","date_gmt":"2018-07-19T05:33:39","guid":{"rendered":"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=97"},"modified":"2018-07-19T08:45:11","modified_gmt":"2018-07-19T08:45:11","slug":"more-transform-and-conquer-problems","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/chapter\/more-transform-and-conquer-problems\/","title":{"rendered":"More Transform and Conquer Problems"},"content":{"raw":"<div>\r\n<p style=\"text-align: justify\">This module 18 focuses on an important design paradigm called Transform and Conquer. This module discusses problems related to matrix decomposition, matrix inverse and matrix determinant. The learning objectives of this module are<\/p>\r\n&nbsp;\r\n\r\n\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain Matrix Decomposition\r\n\r\n\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain Gaussian Elimination for matrix decomposition\r\n\r\n\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain Crout Procedure for matrix decomposition\r\n\r\n\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain matrix inverse and Determinant of matrix using transform and conquer\r\n\r\n&nbsp;\r\n\r\n<strong>Transform and Conquer Design paradigm<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Transform and conquer is a design paradigm where a given problem is transformed to another domain. This can be done for familiarity of simplicity [2,3]. The problem is solved in the new domain. Then, the solutions are converted back to the original domain. In short, transform and conquer proposes two stage solution<\/p>\r\n&nbsp;\r\n\r\n1.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 First stage involves the transformation to another problem that is more amenable for solution\r\n\r\n2.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Second stage involves solving the new problem where the transformed new problem is solved. Then the solutions are converted back to the original problem.\r\n\r\n&nbsp;\r\n\r\n<strong>Variations of Transform and Conquer<\/strong>\r\n\r\n&nbsp;\r\n\r\nThree variants of transform and conquer are as follows:\r\n\r\n&nbsp;\r\n\r\n\u2013\u00a0 Instance Simplification\r\n\r\n\u2013\u00a0 Representation Change\r\n\r\n\u2013\u00a0 Problem Reduction\r\n\r\n&nbsp;\r\n\r\n<strong>Instance simplification <\/strong>is one variant where the problem transformed to the same problem of simpler or convenient instance.\r\n\r\n<\/div>\r\n<div>\r\n<p style=\"text-align: justify\">\u00a0 \u00a0 \u00a0LU decomposition is an example of instance simplification. In LU decomposition, the given matrix is split or decomposed to two matrices L and U. Why? This splitting helps to solve a set of simultaneous equations faster. In other words, LU Decomposition is another method to solve a set of simultaneous linear equations effectively. Thus, the non-singular matrix [<em>A<\/em>], can be written as [<em>A<\/em>] = [<em>L<\/em>][<em>U<\/em>], Here,<\/p>\r\n&nbsp;\r\n\r\n[<em>L<\/em>] = lower triangular matrix\r\n\r\n&nbsp;\r\n\r\n[<em>U<\/em>] = upper triangular matrix\r\n\r\n&nbsp;\r\n\r\nLet the set of simultaneous equations are represented as follows as discussed in the last module in matrix form as:\r\n\r\n<em>Ax <\/em>=<em> b<\/em>\r\n\r\n&nbsp;\r\n\r\nSubstituting A = LU gives,\r\n\r\n&nbsp;\r\n\r\n<em>LUx <\/em>=<em> b<\/em>\r\n\r\n&nbsp;\r\n\r\nFirst, let y = Ux. So by keeping\r\n\r\n&nbsp;\r\n\r\n<em>Ly <\/em>=<em> b<\/em>\r\n\r\nOne can solve for y.\u00a0 Then, by solving <em>Ux<\/em> = <em>y<\/em> ,\r\n\r\n&nbsp;\r\n\r\nOne can solve for the unknown x in the set of linear equations. By matrix decomposition, the process of computing becomes faster.\r\n\r\n&nbsp;\r\n\r\n<strong>Gaussian Elimination method for LU Decomposition<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Gaussian elimination method was discussed in the last module. It can be noted that the matrix U is the same as the coefficient matrix at the end of the forward elimination step and the matrix L is obtained using the multipliers that were used in the forward elimination process.<\/p>\r\n&nbsp;\r\n\r\nOne has to know the limitations of LU decomposition. They are listed below [1] :\r\n\r\n&nbsp;\r\n\r\n1.\u00a0\u00a0\u00a0\u00a0\u00a0 Not all the matrices have LU decomposition\r\n\r\n2.\u00a0\u00a0\u00a0\u00a0\u00a0 Rows or columns can be swapped to make LU decomposition feasible\r\n<p style=\"text-align: justify\">3.\u00a0\u00a0\u00a0\u00a0\u00a0 LU decomposition is guaranteed if the leading submatrices have non-zero determinants. to make LU decomposition. A matrix Ak is called a leading submatrix of matrix A, if it is k x k matrix whose elements are top k rows and k left-most columns.<\/p>\r\n\r\n<\/div>\r\nThe following Example 1 illustrates the Gaussian elimination method for solving a set of equations and to find LU decomposition.\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-100 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-42.png\" alt=\"\" width=\"601\" height=\"783\" \/>\r\n<p style=\"text-align: justify\">The lower-triangular matrix is obtained <em>L<\/em> is made up of <em>1<\/em>\u2019s in the diagonal and the multipliers used for row reduction in the Gaussian elimination. It can be observed that the multipliers used in the above Gaussian elimination process is used to give matrix L<\/p>\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-101 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-43.png\" alt=\"\" width=\"661\" height=\"780\" \/>\r\n\r\n<img class=\"size-full wp-image-102 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-44.png\" alt=\"\" width=\"644\" height=\"841\" \/>\r\n\r\n<img class=\"size-full wp-image-103 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-45.png\" alt=\"\" width=\"634\" height=\"788\" \/>\r\n\r\n<img class=\"size-full wp-image-104 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-46.png\" alt=\"\" width=\"702\" height=\"834\" \/>\r\n\r\n<img class=\"size-full wp-image-105 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-47.png\" alt=\"\" width=\"650\" height=\"829\" \/>\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-107 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-49.png\" alt=\"\" width=\"678\" height=\"866\" \/>\r\n\r\n<img class=\"size-full wp-image-108 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-50.png\" alt=\"\" width=\"682\" height=\"849\" \/>\r\n\r\n&nbsp;\r\n\r\n<img class=\"size-full wp-image-109 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-51.png\" alt=\"\" width=\"650\" height=\"823\" \/>\r\n\r\n<img class=\"size-full wp-image-110 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-52.png\" alt=\"\" width=\"704\" height=\"874\" \/>\r\n\r\n<img class=\"size-full wp-image-111 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-53.png\" alt=\"\" width=\"659\" height=\"874\" \/>\r\n<div>\r\n\r\n<strong>References:<\/strong>\r\n\r\n&nbsp;\r\n\r\n1.\u00a0\u00a0\u00a0\u00a0\u00a0 <em>S.Sridhar , Design and Analysis of Algorithms , Oxford University Press, 2014.<\/em>\r\n\r\n<\/div>\r\n<ol start=\"2\">\r\n \t<li><em>A.Levitin, Introduction to the Design and Analysis of Algorithms, Pearson Education, New Delhi, 2012.<\/em><\/li>\r\n \t<li>T.H.Cormen, C.E. Leiserson, and R.L. Rivest, Introduction to Algorithms, MIT Press, Cambridge, MA 1992.<\/li>\r\n<\/ol>","rendered":"<div>\n<p style=\"text-align: justify\">This module 18 focuses on an important design paradigm called Transform and Conquer. This module discusses problems related to matrix decomposition, matrix inverse and matrix determinant. The learning objectives of this module are<\/p>\n<p>&nbsp;<\/p>\n<p>\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain Matrix Decomposition<\/p>\n<p>\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain Gaussian Elimination for matrix decomposition<\/p>\n<p>\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain Crout Procedure for matrix decomposition<\/p>\n<p>\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 To explain matrix inverse and Determinant of matrix using transform and conquer<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Transform and Conquer Design paradigm<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Transform and conquer is a design paradigm where a given problem is transformed to another domain. This can be done for familiarity of simplicity [2,3]. The problem is solved in the new domain. Then, the solutions are converted back to the original domain. In short, transform and conquer proposes two stage solution<\/p>\n<p>&nbsp;<\/p>\n<p>1.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 First stage involves the transformation to another problem that is more amenable for solution<\/p>\n<p>2.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Second stage involves solving the new problem where the transformed new problem is solved. Then the solutions are converted back to the original problem.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Variations of Transform and Conquer<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Three variants of transform and conquer are as follows:<\/p>\n<p>&nbsp;<\/p>\n<p>\u2013\u00a0 Instance Simplification<\/p>\n<p>\u2013\u00a0 Representation Change<\/p>\n<p>\u2013\u00a0 Problem Reduction<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Instance simplification <\/strong>is one variant where the problem transformed to the same problem of simpler or convenient instance.<\/p>\n<\/div>\n<div>\n<p style=\"text-align: justify\">\u00a0 \u00a0 \u00a0LU decomposition is an example of instance simplification. In LU decomposition, the given matrix is split or decomposed to two matrices L and U. Why? This splitting helps to solve a set of simultaneous equations faster. In other words, LU Decomposition is another method to solve a set of simultaneous linear equations effectively. Thus, the non-singular matrix [<em>A<\/em>], can be written as [<em>A<\/em>] = [<em>L<\/em>][<em>U<\/em>], Here,<\/p>\n<p>&nbsp;<\/p>\n<p>[<em>L<\/em>] = lower triangular matrix<\/p>\n<p>&nbsp;<\/p>\n<p>[<em>U<\/em>] = upper triangular matrix<\/p>\n<p>&nbsp;<\/p>\n<p>Let the set of simultaneous equations are represented as follows as discussed in the last module in matrix form as:<\/p>\n<p><em>Ax <\/em>=<em> b<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Substituting A = LU gives,<\/p>\n<p>&nbsp;<\/p>\n<p><em>LUx <\/em>=<em> b<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>First, let y = Ux. So by keeping<\/p>\n<p>&nbsp;<\/p>\n<p><em>Ly <\/em>=<em> b<\/em><\/p>\n<p>One can solve for y.\u00a0 Then, by solving <em>Ux<\/em> = <em>y<\/em> ,<\/p>\n<p>&nbsp;<\/p>\n<p>One can solve for the unknown x in the set of linear equations. By matrix decomposition, the process of computing becomes faster.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Gaussian Elimination method for LU Decomposition<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Gaussian elimination method was discussed in the last module. It can be noted that the matrix U is the same as the coefficient matrix at the end of the forward elimination step and the matrix L is obtained using the multipliers that were used in the forward elimination process.<\/p>\n<p>&nbsp;<\/p>\n<p>One has to know the limitations of LU decomposition. They are listed below [1] :<\/p>\n<p>&nbsp;<\/p>\n<p>1.\u00a0\u00a0\u00a0\u00a0\u00a0 Not all the matrices have LU decomposition<\/p>\n<p>2.\u00a0\u00a0\u00a0\u00a0\u00a0 Rows or columns can be swapped to make LU decomposition feasible<\/p>\n<p style=\"text-align: justify\">3.\u00a0\u00a0\u00a0\u00a0\u00a0 LU decomposition is guaranteed if the leading submatrices have non-zero determinants. to make LU decomposition. A matrix Ak is called a leading submatrix of matrix A, if it is k x k matrix whose elements are top k rows and k left-most columns.<\/p>\n<\/div>\n<p>The following Example 1 illustrates the Gaussian elimination method for solving a set of equations and to find LU decomposition.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-100 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-42.png\" alt=\"\" width=\"601\" height=\"783\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-42.png 601w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-42-230x300.png 230w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-42-65x85.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-42-225x293.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-42-350x456.png 350w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/p>\n<p style=\"text-align: justify\">The lower-triangular matrix is obtained <em>L<\/em> is made up of <em>1<\/em>\u2019s in the diagonal and the multipliers used for row reduction in the Gaussian elimination. It can be observed that the multipliers used in the above Gaussian elimination process is used to give matrix L<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-101 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-43.png\" alt=\"\" width=\"661\" height=\"780\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-43.png 661w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-43-254x300.png 254w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-43-65x77.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-43-225x266.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-43-350x413.png 350w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-102 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-44.png\" alt=\"\" width=\"644\" height=\"841\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-44.png 644w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-44-230x300.png 230w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-44-65x85.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-44-225x294.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-44-350x457.png 350w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-103 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-45.png\" alt=\"\" width=\"634\" height=\"788\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-45.png 634w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-45-241x300.png 241w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-45-65x81.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-45-225x280.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-45-350x435.png 350w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-104 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-46.png\" alt=\"\" width=\"702\" height=\"834\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-46.png 702w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-46-253x300.png 253w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-46-65x77.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-46-225x267.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-46-350x416.png 350w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-105 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-47.png\" alt=\"\" width=\"650\" height=\"829\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-47.png 650w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-47-235x300.png 235w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-47-65x83.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-47-225x287.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-47-350x446.png 350w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-107 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-49.png\" alt=\"\" width=\"678\" height=\"866\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-49.png 678w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-49-235x300.png 235w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-49-65x83.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-49-225x287.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-49-350x447.png 350w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-108 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-50.png\" alt=\"\" width=\"682\" height=\"849\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-50.png 682w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-50-241x300.png 241w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-50-65x81.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-50-225x280.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-50-350x436.png 350w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-109 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-51.png\" alt=\"\" width=\"650\" height=\"823\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-51.png 650w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-51-237x300.png 237w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-51-65x82.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-51-225x285.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-51-350x443.png 350w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-110 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-52.png\" alt=\"\" width=\"704\" height=\"874\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-52.png 704w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-52-242x300.png 242w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-52-65x81.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-52-225x279.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-52-350x435.png 350w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-111 aligncenter\" src=\"http:\/\/csp5.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-53.png\" alt=\"\" width=\"659\" height=\"874\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-53.png 659w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-53-226x300.png 226w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-53-65x86.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-53-225x298.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-content\/uploads\/sites\/48\/2018\/07\/Untitled-53-350x464.png 350w\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" \/><\/p>\n<div>\n<p><strong>References:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>1.\u00a0\u00a0\u00a0\u00a0\u00a0 <em>S.Sridhar , Design and Analysis of Algorithms , Oxford University Press, 2014.<\/em><\/p>\n<\/div>\n<ol start=\"2\">\n<li><em>A.Levitin, Introduction to the Design and Analysis of Algorithms, Pearson Education, New Delhi, 2012.<\/em><\/li>\n<li>T.H.Cormen, C.E. Leiserson, and R.L. Rivest, Introduction to Algorithms, MIT Press, Cambridge, MA 1992.<\/li>\n<\/ol>\n","protected":false},"author":4,"menu_order":8,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":["mr-s-sridhar"],"pb_section_license":""},"chapter-type":[],"contributor":[58],"license":[],"class_list":["post-97","chapter","type-chapter","status-publish","hentry","contributor-mr-s-sridhar"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/pressbooks\/v2\/chapters\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/wp\/v2\/users\/4"}],"version-history":[{"count":5,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/pressbooks\/v2\/chapters\/97\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/pressbooks\/v2\/chapters\/97\/revisions\/181"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/pressbooks\/v2\/chapters\/97\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/pressbooks\/v2\/chapter-type?post=97"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/wp\/v2\/contributor?post=97"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp5\/wp-json\/wp\/v2\/license?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}