Least Frequently Used (LFU) is a type of cache algorithm used to manage memory within a computer. The standard characteristics of this method involve the system keeping track of
Here's the o(1) implementation for LFU - http://dhruvbird.com/lfu.pdf