study guides for every class

that actually explain what's on your next test

Sorted Subarray

from class:

AP Computer Science A

Definition

In insertion sort, a sorted subarray refers to the portion of the array that has already been sorted. As new elements are inserted into their correct positions within this subarray, it expands until all elements are eventually sorted.

"Sorted Subarray" also found in:

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.