Backtracking algorithm some basic knowledge