What is the difference between linear and random access?

the difference between linear and random access memory. Cannot find this on web at all need answer ASAP!!

2 Answers

Relevance
  • 9 years ago
    Favorite Answer

    Linear access is transferring in sequential order, like you would have to a video on VHS, you have to spool from the start to where you want to watch from.

    Random access istransferring in arbtrary order, like you would have to a video on DVD, you can jump directly to where you want to watch from.

    Sequential access is extremely efficient if you want to read or write everything in the object. Random access is extremely efficient if you want to read or write only a small part of the object.

    • Login to reply the answers
  • 9 years ago

    take this as an example, you have the following numbers set or array:

    2 , 4 , 6, 8, 9

    and your target is to access and modify the number '8'

    so if you are going linear or sequential access then you need to access the memory blocks containing numbers 2, 4, and 6 one after the other, this will take more computing time

    but if you are going random then you can access memory block containing the number 8 directly, this reduces computing time and increases efficiency.

    this can be achieved by utilizing object oriented languages that have pointers

    • Login to reply the answers
Still have questions? Get your answers by asking now.