constraint satisfaction problem algorithm code example Example: To overcome the need to backtrack in constraint satisfaction problem can be eliminated by Forward Searching