in Programming in C reopened by
3,292 views
0 votes
0 votes
What are sequential access structures? Are arrays or linked list the sequential access structures?
in Programming in C reopened by
by
3.3k views

6 Comments

Sequential access structures are those where you have to access data sequentially from the start. Like in a linked list, we traverse from the head until we find the required node.

while Random access / Direct access structures are those in which you can access a memory location by means of some indexing. Like, in an array we can reach a location by its index.
1
1

@gauravkc

Does that mean that every random access structure is also a sequential structure in a way? But the reverse is not true.

0
0
No. Consider the hash table. Elements stored in a hash table can be accessed through an index and hence is a random access structure. However, the elements need not be in a specific order with respect to the key used.
2
2

Alright! Thank you @gauravkc.

0
0
You don't need to close any question once you receive answer. Closing is used for bad or unwanted questions
0
0
Alright.
0
0

2 Answers

0 votes
0 votes
Elements in which can be visited in a sequential manner, yes linked list is a sequential  access structure.
by

3 Comments

Arrays can also be visited in sequential manner. Then why not arrays as well?
0
0
Yes, I did not see arrays in your question.
0
0
Thanks! Arrays are not sequential structures.
0
0
0 votes
0 votes
linked lists are

1 comment

Thank you!
0
0

Related questions