A textbook on design and analysis of algorithms presents the concepts in two ways: (i) Based on design
techniques, for example, there will be a chapter for each design technique or (ii) based on the different areas like searching, sorting, graph algorithms, numerical algorithms etc. In my opinion, the first approach is a generic approach and illustrates the concepts behind the design of algorithms. This approach is suitable for designing algorithms for a new problem, whereas the second approach is suitable if a person wants to focus on a specific
area e.g., searching, etc. In this book, the author has used the first approach to present the concepts of algorithms and the various topics on algorithms.