#274 · How it works, by example · 6.4 minHow File Compression Works: Huffman Coding in 40 Lines
Huffman coding took a 102 character text from 816 bits to 349, before its code table, in about 40 lines of Python.
Python 3.12.15all videos / How it works, by example
8 videos · 52 minutes.
#274 · How it works, by example · 6.4 minHuffman coding took a 102 character text from 816 bits to 349, before its code table, in about 40 lines of Python.
Python 3.12.15
#275 · How it works, by example · 6.5 minA 10,000 bit Bloom filter gave 0.9% false positives, then 41.6% once I overfilled it.
Python 3.12.15
#276 · How it works, by example · 6.5 min200,000 rows: one CREATE INDEX turned a full scan into a search, same answer.
Python 3.12.15
#277 · How it works, by example · 6.6 min9 calls to a tiny notes API gave 6 status codes, from 200 to 405.
Python 3.12.15
#278 · How it works, by example · 6.4 minA cache of 100 keys out of about 1,000 answered 58% of made-up requests.
Python 3.12.15
#280 · How it works, by example · 6.9 minIn a TLS 1.3 handshake, every handshake message after the two hellos is encrypted, but the site name is not.
Python 3.12.15 | cryptography==50.0.2
#281 · How it works, by example · 6.4 minTwo users, one password, the same plain hash. A salt and a slow hash fix it.
Python 3.12.15
#282 · How it works, by example · 6.4 minBrute force: 6 of 6 guesses through, then 2 of 6 once the lockout was on.
Python 3.12.15No video matches that search.