Programming: Everyday Decision-Making Algorithms
Kühne Logistics University Hamburg - Winter 2025
By the end of this lecture, you will be able to:
Question: How many of you have a messy desktop right now?
Raise your hand!
Today’s lecture will explain why that matters more than you think…




We could increase the capacity


The evolution of computer memory
→ The Memory Wall
→ Von Neumann Bottleneck
A hierarchical memory system
Like a library…
Closer = Faster = Smaller


Registers are 10 million times faster than the hard drive!
Why can’t we just make everything as fast as L1 cache?
Why not make everything ultra-fast?

→ Requires knowledge of the future!
Recent past predicts near future
Marie Kondo = LRU for physical objects!
Question: Can you think of examples where spatial locality is applied in your daily life?

Mathematically optimal
Reflection: How many times did you check your phone during this lecture?
→ The key principle: If you haven’t used it recently, move it away!
Question: Right now:
Do you see any risks of cache flooding?
Think Python is a great book to start with. It’s available online for free. Schrödinger Programmiert Python is a great alternative for German students, as it is a very playful introduction to programming with lots of examples.
For more interesting literature, take a look at the literature list of this course.
Lecture III - Caching | Dr. Nils Roemer | Home