The same number of loops in the get_words_for_board_optimize_fast function can have wildly varying numbers of internal steps as currently measured. This causes some inputs to run for several minutes despite technically having a low loop count
Add the true loop # and/or optimize the function
Can be tested with the long-running input:
python make_puzzle_v2.py "conference" "deadline" --packing-constant=1.22 --strategy=median --pivot=max_freq --optimize-words
The same number of loops in the
get_words_for_board_optimize_fast
function can have wildly varying numbers of internal steps as currently measured. This causes some inputs to run for several minutes despite technically having a low loop countAdd the true loop # and/or optimize the function
Can be tested with the long-running input:
python make_puzzle_v2.py "conference" "deadline" --packing-constant=1.22 --strategy=median --pivot=max_freq --optimize-words