locality of reference is a phenomenon that can be seen in computer science. it says that the same value, or the place where it is stored is accessed often. there are two different kinds of locality of reference: