function that takes as arguments : curr_bound -> lower bound of the root node curr_weight -> stores the weight of the path so far level -> current level while moving in the search space tree curr_path [ ] -> where the solution is being stored which would later be copied to final_path [ ]
def TSPRec ( adj , curr_bound , curr_weight , level , curr_path , visited ) : NEW_LINE INDENT global final_res NEW_LINE DEDENT