In this visualization, the distance of each dot from the center is determined by how correct of a position that number is in. For example, if the number 1 is in the middle of the array, it will produce a dot very close to the center, as it is supposed to be the first element in the array. However, if the number 1 is near the beginning or end of the array, it will produce a dot much further from the center. This means that, when fully sorted, every dot will be at its maximum distance from the center, and a circle (oval) will be produced.
14 июл 2017