You can easily compare how different algorithms sort a shuffled array step-by-step. The script uses Python generators to yield the array state at each sorting step. Matplotlib animates these steps as ...