This should be pretty simple. Here is what I want to put into a formula/algorithm:
Divide the size of every object of an array by the number of times that object has been accessed in the last n seconds and discarding the highest quotient. (You can probably ignore the bold part)
I can program this just fine, but I am going to be showing it to a Mathematician (one of my professors) and I would like to impress him a bit. If the description of what I want is not clear and an example in code would help let me know and I'll whip something up real quick.