Design and Analysis of Algorithms

UNIT 1 ALGORITHM An algorithm  is the sequence of and ambiguous instructions for solving a problem. i.e. for obtaining a required output for any legitimate input in…