cutandinsert
Cutandinsert, sometimes written cut-and-insert, is a sequence manipulation operation used in editing, data processing, and algorithmic contexts. It relocates a contiguous block of elements by removing it from its original position and inserting it at a new position, without altering the contents of the block itself. When the operation is performed within the same sequence, it is often referred to as a block move.
Formally, for a sequence S, choose a contiguous block S[i..j] and a target position k. Remove S[i..j]
Applications of cutandinsert span several domains. In text editing and word processors, it models the common
Related concepts include cut and paste in general, block moves or block transpositions, and edit distances