Worst-case analysis