875
Don't you understand? (media.piefed.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] sloppy_diffuser@sh.itjust.works 28 points 5 days ago

Items are in a hash table using color/material type/shape as the hashing method optimized for human pattern recognition providing O(1) access. The table is smaller than the number of items causing some collisions. Those items are in a randomly sorted vector. Average case is still around O(1) with an O(n) worst case.

this post was submitted on 21 Mar 2026
875 points (98.1% liked)

Programmer Humor

30612 readers
1370 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS