0% found this document useful (0 votes)
734 views

Inplace and Outplace

An inplace algorithm sorts input without using extra memory, overwriting the input as it executes, with Quick sort, Bubble sort, Insertion sort, and Heap sort being examples. An outplace algorithm does not sort inplace, such as standard merge sort, while selection sort can be either inplace or outplace.

Uploaded by

Sohaib Azam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
734 views

Inplace and Outplace

An inplace algorithm sorts input without using extra memory, overwriting the input as it executes, with Quick sort, Bubble sort, Insertion sort, and Heap sort being examples. An outplace algorithm does not sort inplace, such as standard merge sort, while selection sort can be either inplace or outplace.

Uploaded by

Sohaib Azam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Inplace Algoritm:

An inplace algorithm is an algorithm which sorts input without using extra memor
y however a small amount of extra storage is allowed for variables. The input is
usually overwritten by the output as the algorithm executes.
Quick sort, Bubble sort, Insertion sort, Heap sort are Inplace sorting algorithm
s.
Outplace Algorithml:
An algorithm which is not inplace is called outplace algorithm.
Standard merge sort is an outplace algorithm.
Selection sort can be both inplace and outplace

You might also like