Simon Willison created interactive animated demonstrations of common sorting algorithms using Claude Artifacts, including bubble sort, selection sort, insertion sort, merge sort, quick sort, heap sort, and Python's Timsort. He added a 'run all' feature to display all algorithms simultaneously in a grid layout. The implementation involved Claude cloning the CPython repository to examine Timsort details, though GPT-5.4 noted it was a simplified version.
Background
Sorting algorithms are fundamental computer science concepts used to arrange data in specific orders, with various algorithms offering different trade-offs in efficiency and complexity. Animated visualizations have long been popular for teaching these algorithms.
- Source
- Simon Willison
- Published
- Mar 12, 2026 at 06:58 AM
- Score
- 5.0 / 10