3.4 | Data Structures and Algorithms Using C++
3.3.7 BACK TRACKING ALGORITHMS
e back tracking algorithms are completely based on the depth- rst-recursive search approach. At each step,
the algorithm tries to verify whether the solution is found or not. If the solution is found, it exits, otherwise it
moves to the previous step (back) and tries to select the move to the possible case. If no more choices are found
and the solution is not found, then it returns a failure.
Example: 8-Queen Problem.
3.3.8 RANDOMIZED ALGORITHMS
e randomized algorithms make a random choice for at least once to make the decision.
Example: Quick sort uses a random number to select the pivot element.
3.3.9 HILL CLIMBING ALGORITHMS
e complete solution of the prob ...