Memoization optimizes computation by caching deterministic function results. Caching optimizes retrieval by storing expensive-to-obtain data. Related concepts, different use cases.
Many developers mix these up. Memoization is just a specialized form of caching. Every memoization technique is caching, but not every cache is memoization.
If your cache key is a function's arguments and the value is the function's return value, you're doing memoization.
Otherwise, you're probably just caching.
Think of it this way:
๐ฆ Caching = storing data for faster access later
๐ง Memoization = storing a function's output for a specific input
Memoization is a subset of caching.
AI detects and counts people
Movement is tracked over time
Turnout is estimated using visual data
Results are compared against official figures
So if a polling unit claims 10k votes, but AI data shows only 1k people were physically present, that becomes a serious discrepancy.
Imagine this:
Drones flying over every polling unitโฆ
AI models like YOLO and SAM2 counting every voter in real time.
This idea came up in a tech discussion online and itโs pretty interesting.
The concept is simple:
Drones monitor polling stations