PREV INDEX NEXT

Author: Unknown
Subject: Exiting Gracefully from Number of Backtracks
Date: Wednesday, 12 Feb 2020, 23:16:52

"    > Message Posted By: Unknown
    >
    > To "exit gracefully," I think we had mentioned in class that we could
    > use a static local variable to keep track of the number of backtracks
    > that were run, and to exit if it passed some maximum.  Is there a target
    > maximum number of backtracks we should check against?  (i.e.  will the
    > private tests run more than say 1,000,000 backtracks?)

Hwk2/Binpacki and Hwk2/BinpackX stop at 100,000,000
backtracks.

--Stan-"

So should our code stop and exit gracefully at 100,000,000 backtracks?
PREV INDEX NEXT