SORTDEMO.BAS

fragglet1 HN recommenders · 2019–2023
10K views · demo · evergreen · Uploaded 2010-07-19

A three-minute capture of SORTDEMO.BAS, the sorting visualization that shipped with QBasic. It animates insertion, bubble, heap, exchange, shell and quick sort with chiptune-like sound.

HN fondly recalls it as the ideal visual demonstration of sorting algorithms and as the thing that got some people into programming.

Watch on YouTube

3 comments from Hacker News

@agf2019 · in “Bubble Sort: An Archaeological Algorithmic Analysis”

I discovered sorting algorithms (including bubblesort) from SORTDEMO.BAS -- [VIDEO] -- which came with QBasic.

@choult2022 · in “The Good Ol' Days of QBasic Nibbles”

Q(uick)Basic was my first programming language, and as others mentioned NIBBLES and GORILLAS.BAS were bundled with it. It also had the ability to compile down to an executable, which was fantastic. One bundled script I don't see mentioned yet was SORTDEMO.BAS - this is still my ideal for demonstrating different sorts visually: [VIDEO]

RecommendsView on HN
@LVB2023 · in “Ask HN: What's your favorite illustration in Computer Science?”

Watching SORTDEMO.BAS at the formative age of ~11 baited me into programming. I recall messing around trying to make even faster versions. [VIDEO]