Hi, i really enjoyed the informative webinar for optimizing backtracking algo.
while the final bitmasking code looks elegant and concise i am left with a few pressing doubts:
-
If we are starting with all masks as 0, where exactlty in the code are we assigning the first queen. i got the entire mask and bit logic but i cannot figure out where the first queen is assigned and how.
-
where is the backtracking line?? The unplacing of the queen and retracting of our steps?? the example demonstrated took no backtrack steps… so that is another issue i cannot figure out…
Thanks for your help!