Bytes

Everything a computer stores is bytes. Type text or a number and see the bytes it becomes.


Huffman coding

Huffman gives common characters short codes and rare ones long codes.


Hash table

A hash table turns a key into a number (its hash) and the number into a bucket. Two keys in the same bucket are a collision.

Keys
0
Buckets
8
Load factor
0
Collisions
0
Longest chain
0

Bloom filter

"Is it there?" answered with a few bits: "maybe" or "certainly not".

Added: –


SHA-256 and the avalanche effect

Change one bit of the text and about half of the 256 bits of the hash change.

Hash of the text Hash of the changed text

same bit different bit

How the difference spreads, round by round

Show the numbers
RoundBits that differ