






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































k = 1 While (k > 0) do While S(k) != emptySet do (advance) a(k) = an element in S(k) S(k)= S(k)- a(k) if ( a(1),a(2),...,a(k)) is a solution, print it k = k + 1 Compute S(k) Compute , the candidate k-th element given v. k = k - 1 (backtrack)**
Improving Backtracking: Search Pruning
PositionInRow 1 3 0 2