In
computer science, an
in-place algorithm is an
algorithm which transforms input using a
data structure with a small amount of extra storage space. The input is usually overwritten by the output as the algorithm executes. An algorithm which is not in-place is sometimes called
not-in-place or
out-of-place.