Locality of reference is a phenomenon that can be observed in Computer science . It says that the same value , or the place where it is stored is accessed often . In computer science , locality of reference , also known as the principle of locality , is the phenomenon of the same value or related storage locations being frequently accessed .