Stopping Backtracking

Posted by John Retallack on Stack Overflow See other posts from Stack Overflow or by John Retallack
Published on 2010-04-25T14:22:42Z Indexed on 2010/04/25 15:33 UTC
Read the original article Hit count: 265

Filed under:
|
|
|

Is there any way in C/C++ to stop a backtracking algorithm after finding the first solution without exiting the program.

I want my function to immediately exit the function,not to quit every level of recurrsion one by one stating return.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c