CLASSIFIED DATA STRUCTURE
As many of the student in the computer field,knows about these things and many of them are eagering to learn them.But as for the student now a days they learned simply a define,syntax and get up through in executing the command.
That's a wrong WAY......
The name which are heading at the top are the main responsible for the function of the computer like storing and organising data.so for that we can't just leave it by just learning their syntax and define.
these data structers has to concepted in you mind very clearly...
below down there's a explanation of one by one data structure of not how they are use in software but> how they are related to our day to day life activity or things?
1.ARRAYS :- In computing, an array data structure, or simply an array, is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key.
EXAMPLE:-
if you saw a above picture, you are going to get know about the real life example of array.......
In this pic the cartoon box shown above has a cube which is of same length and breath.so if i read up through the define of array it tells that the array store datta of the same types apart from the size what we are using for the same data types.so as for cartoon box we have 3 rown and 3 coloum ,generally we can only store things in that cube which have a specific size. we can store the same things of less quantity but we can't store the same things in larger quantity.
2.STALKS:-In computing, a stack is a data structure used to store a collection of objects. Individual items can be added and stored in a stack using a push operation. Objects can be retrieved using a pop operation, which removes an item from the stack.
EXAMPLE:-
If you saw the above picture,you are going to get know about the real life example of the stacks.....
In this pic the tower of the coin has been made,so let's say someone has a bunch of coin so he is going to set a tower.One by one step by step he is going to put a coin one above the another.As you stacks works on the principle of the LIFO(last in,firstout),so therefore the coin which is at the top of the tower has to move out of the construction,where as in the computer the data which is store in stacks has to move out through the same process.
3.QUEUES:-In computing, a queue is a particular kind of abstract data type or collection in which the entities in the collection are kept in order.It is a first-in first-out (FIFO) abstract data type that is heavily used in computing.
EXAMPLE:-
If you saw the above picture,you are going to ge t know about the real life example of the queues.....
In this pic you have been seeing list of people standing in a line for their turn to get the ticket.So the people which came first,standing infront of everyone got the tickets first and move out,this method is knownasFIFO(first in,first out).The same process is going on computer when data is store in queues.
4.TREE:-In computing, a tree is a widely used abstract data type (ADT)—or data structure implementing this ADT—that simulates a hierarchical tree structure, with a root value and subtrees of children with a parent node, represented as a set of linked nodes.
Root:-The top node in a tree.
parent node:-A node directly connected to top node.
children node:-the node directly connected to parent node.
EXAMPLE:-
If you the above picture,you are going to get know about the real life example of the tree...
lets consider a book ,as we know many stories or educational type they are having a different section which is divided as per the content which we have to explain.if we take stories books there is part by part divided as per the scene.where as in educational book they divided them in the topics which they gonna expain briefly.the books which is having a chapter also again divided in the section like in the stories its mainly be like a dialogue and where as in the educational books its having section like question/answer.In tree data is been store like a particular way like if we writing a book,as you know you have to write the story on the particular thinghs and not just indulging other content in it.In stacks there's a same method means there's a root nodes which is like drive of the computer,if we take files it would be the parent node and in between the data stores is knowns as children nodes.
