+ 3
Data structure
what are the types of data stucture? Because some people tell me linear or non linear but on google primitive or non primitive are the types of data structure please tell me the correct answer.
7 Answers
+ 3
vashishtha but in book non primitive data structure are array lists and file and types of lists are linear and non linear
+ 3
Just caution here. In books normally autors have differents point of view. And if you not, check data release of the book. The information can be outdated.
Finally check if you understand the key concepts. This is importante because you can verify for yourself which interpretation fits your understanding.
But I'm curious. Which book and edition are you using?
+ 2
Kind of both.
In Non Primitive types you have a division:
- Linear
- Non Linear
You can see better here:
https://www.tutorialride.com/data-structures/data-structure-tutorial.htm
+ 2
books written by author & different author have different opinions....
so logically array is linear so we can conclude array in linear data structures...
if you compare list & array...so it is vary in different languages....
I forgot to written file...it is neither linear nor non linear..
if had any query please comment....
+ 1
Ok so just understand this
data structures have two types:
>primitive data structures
>non primitive data structures
>primitive includes : int,float,char
>non primitive includes :
LINEAR AND
NON LINEAR data structures
>linear includes: array,list,stack, queues
>non linear includes graph and link list
+ 1
thanks for answer
0
Here linear data structure are: arrays, linked lists
which forms linearly representation.
And non-linear data structures are :trees ,Bst etc which forms hierarchical representation
And finally primitive and non-primitive are mostly found on programming languages .
Primitive data structures are predefined like int,char ,flaot ,boolean etc
Non primitive are user defiend data types like structues,class ,arrags etc