Skip to content

In-place marking [mp]

Micro pattern

Description

Replace input values with markers to avoid a separate visited or metadata structure.

Problems

Metadata markers

Reserve positions or bits to record a later transformation.

Backtracking-path markers

Mark a cell during one path and restore it afterward.

Permanent component markers

Overwrite visited cells when their original value is no longer needed.

Protected-complement markers

Mark boundary-connected cells before processing their unmarked complement.