Skip to content
On this page

VisuApps

Computer science Learn interactively.

Understand algorithms and data structures step by step

32 VisuApps
See the apps

All subjects App catalogue

Apps

All apps. Free in your browser.

Huffman Coding Step by Step

Huffman Coding Step by Step

The Huffman tree grows from the character frequencies of a text: the two lightest nodes leave the heap, fly under a new node carrying their sum, and the new node returns via heappush. The app computes exactly like the slide code (heapq with __lt__), also for your own text. Then read the codes, see 61 instead of 133 bits for KLEINERBEISPIELTEXT, and decode the bit stream without separators bit by bit through the tree. With a prediction question and a switch for a different choice on ties.

Computer scienceTry it
Operator precedence

Operator precedence

Python expressions step by step: the expression tree hangs right below the expression — what goes first sits at the bottom — and the 14-level precedence ladder shows why. Values fly up, the intermediate state substitutes sub-expressions, and/or short circuits stay visibly unevaluated. 17 examples from the lecture notes (a += a == 2, -2 ** 2, 3 > 2 > 1 …), your own expressions, a guess beforehand and a “misconception” reading (strictly left to right, times before divided, powers from the left …) to compare.

Computer scienceTry it
Search Tree Workshop

Search Tree Workshop

Insert, search and delete numbers in a binary search tree: the comparison path lights up node by node with the sentence from the slides (‘22 > 21: right’). Below, the pointer of a sorted linked list runs along, and two counters compare tree and list. Nodes stand in inorder sequence and only move sideways on insertion. 1 2 3 4 5 makes the tree degenerate into a list (depth 5 instead of 3). Plus the three deletion cases, an object view with node cards and the exercises max, depth and search tree by hand.

Computer scienceTry it
Where Does the Exception Go?

Where Does the Exception Go?

Deep inside, an exception arises and visibly rises frame by frame through the call stack until a matching except catches it or the program aborts. Every frame it leaves writes its line into the growing traceback; at each net the app checks the type (“ValueError matches except ValueError: yes”). Four programs from real Python 3.13 (price list, order, run, missing file), switches for try, else/finally and where to catch, and first the question “Who catches the exception?”.

Computer scienceTry it

New ideas for your teaching.

Want to use these apps in your courses? Let’s find out what works for you.

Tell us what this is about

One form, three matters. We answer personally.

What is this about?

We show heyprof on your own material. Tell us what you teach and we will prepare the conversation around it.

Your details

Where do you teach? (optional)

What comes back

Only when something new for your subject is ready. You will first get a mail with a confirmation link — without that click we do not add you, and we discard the address after a few days. Every later mail carries an unsubscribe link.

What happens next

  • A confirmation to your address, right away.
  • An answer from us, usually within two working days.
  • No phone call, nothing passed on to third parties.

We use your details only to answer you. Privacy policy