+ 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.

20th Oct 2018, 1:06 PM
Sphoorti Pipley
Sphoorti Pipley - avatar
7 Respostas
+ 3
vashishtha but in book non primitive data structure are array lists and file and types of lists are linear and non linear
20th Oct 2018, 1:18 PM
Sphoorti Pipley
Sphoorti Pipley - avatar
+ 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?
20th Oct 2018, 1:33 PM
Anya
Anya - avatar
+ 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
20th Oct 2018, 1:18 PM
Anya
Anya - avatar
+ 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....
20th Oct 2018, 1:49 PM
Vashishtha Upadhyay
Vashishtha Upadhyay - avatar
+ 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
20th Oct 2018, 1:12 PM
Vashishtha Upadhyay
Vashishtha Upadhyay - avatar
+ 1
thanks for answer
20th Oct 2018, 1:13 PM
Sphoorti Pipley
Sphoorti Pipley - avatar
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
8th Nov 2018, 4:31 PM
{ sood(Hemant , Prakash); }
{ sood(Hemant , Prakash); } - avatar