COMPUTER SCIENCE AND ENGINEERING
SOFTWARE ENGINEERING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -Spatial locality (also termed data locality) refers to the use of data elements within relatively close storage locations. Sequential locality, a special case of spatial locality, occurs when data elements are arranged and accessed linearly, such as traversing the elements in a one-dimensional array.
Detailed explanation-2: -Spatial locality refers to the use of data elements within relatively close storage locations.
Detailed explanation-3: -Spatial locality means that data items that are stored physically close to each other tend to be accessed together. Hence spatial locality is the concept that likelihood of referencing a data item by a program is higher if a data item near it has been referenced recently.
Detailed explanation-4: –The principle of spatial locality says that if a program accesses one memory address, there is a good chance that it will also access other nearby addresses. The principle of temporal locality says that if a program accesses one memory address, there is a good chance that it will access the same address again.