179k views
1 vote
Non linear data structures are always betterthan linear data structures;why

please give me strong ressons withexamples.

1 Answer

3 votes

Answer:

Linear data structures stores data in a sequential order while Non Linear data structures stores data in a non-sequential order.

Non Linear data structures are better than non - linear data structures in terms of memory utilization and they are multilevel or hierarchical approach.

The memory utilization in non linear data structures is always better than linear data structures. Since linear data structures tends to waste memory.

Linear data structures uses single level while non linear data structures uses multilevel to store the data.

linear data structures examples:- arrays,linked lists,stack,queue.

Non-Linear data structures ex:- tree,graphs,heaps.

User Sscswapnil
by
5.6k points