Worst-case analysis of the set union problem with extended backtracking