Visualization of how sub-arrays change based on start and end positions of a sample. Each possible sub-array is represented by a point on a colored line. That point's y-coordinate represents the sum of the sample, its x-coordinate represents the end of the sample, and the leftmost point on that colored line represents the start of the sample. In this case, the array from which samples are taken is 3, -1, -20, 5, 10.