1.

Which of the following concepts make extensive use of arrays?(a) Binary trees(b) Scheduling of processes(c) Caching(d) Spatial localityEnquiry is from Array and Array Operations topic in portion Abstract Data Types of Data Structures & Algorithms IThe question was asked in exam.

Answer»

Correct answer is (d) SPATIAL locality

Easiest explanation - Whenever a particular memory location is referred to, it is likely that the locations NEARBY are also referred, ARRAYS are stored as contiguous blocks in memory, so if you want to access array ELEMENTS, spatial locality makes it to access quickly.



Discussion

No Comment Found

Related InterviewSolutions