Which of the following is a non-linear data structure?
2016
Which of the following is a non-linear data structure?
- A.
Graph
- B.
Array
- C.
Queue
- D.
Linked List
Attempted by 579 students.
Show answer & explanation
Correct answer: A
A graph is a non-linear data structure because its elements are not arranged sequentially. It consists of nodes (vertices) connected by edges, forming a hierarchical or network relationship. In contrast, arrays, queues, and linked lists store data linearly. Therefore, option A is correct.