W4 A1 - Tuples for Cache?

Hi All,

I was curious why in W4 Assignment, the Cache is in the form of tuples rather than dictionary as it was in previous assignments.

It was easier to wrap my head around on how the cache was organized when it was in a dictionary

e.g. W = cache[“W”]

Could we not have cashes as an array containing a dictionary with the cache at each layer ?


I think the reason they would use tuples is because they are not as memory expensive as dictionaries.