Skip to content

Comparison [mp]

Micro pattern

Description

Use local comparisons to determine ordering, movement, search direction, or positional equality.

Problems

Compare active front elements

Select the smaller available front element when merging sorted sequences.

Direct pointers or search boundaries

Compare an active value with a target or boundary to choose the next position.

Custom ordering

Compare composed arrangements when ordinary ordering does not capture the objective.

Positional equality

Compare structurally related positions while extending a run, path, or symmetric region.