These algorithms are common set operations performed on sequences that are already sorted. The number of comparisons will be linear.