Data structures
Data structures
A data structure is the way of storing and unifying data . Any type of object that stores data is called a data structure. There are 2 types of data structure. They are
I.Primitive
II. Non primitive
I.Primitive
Primitive types are value types such as
1. Signed integer(sbyte,short,int,long)
2.Unsigned integer(byte,ushort,uint,ulong)
3.Unicode characters(char)
4.IEEE floating point(float,double)
5. High precision decimal (decimal)
6.Boolean(bool)
7.Nullable
8. String
9.Object
II.Non primitive
Non primitive types are user defined types . Further it is divided in to 2 types. They are
i)Linear
ii)Non linear
i)Linear
In linear data structure ,elements are organized in a sequence such as
1.Array(ArrayList,String[],List, Dictionary,HashTable,BitArray)
2. Stack(Stack<T>,SortedSet<T>)
3. Queue(Queue<T>)
4. Linkedlist(LinkedList<T>)
ii) Non linear
In non linear the elements are stored without any sequence such as
1.Tree
2. Graph
Comments
Post a Comment