Question
For data analysis tasks requiring efficient cache
performance due to sequential data processing, which characteristic of arrays is most beneficial?Solution
Arrays store elements in contiguous memory blocks, which leads to better cache locality. When data is accessed sequentially, the CPU can pre-fetch nearby elements into the cache, significantly improving performance.