Data struters
-
Upload
bansal-ashish -
Category
Education
-
view
38 -
download
1
Transcript of Data struters
Data structures is representation of logical relationship exiting
between individual elements of data
in te rger floa t characte r po in te r
prim ita tive da ta structe r
array
stacks queues
liner lis t
lis t
g raphs trees
non-line r lis t
files
non-prim ita tive structe r
da ta stru te rsT ype title here
Primitive data structure• These are basic structures and directly
upon by the machine instructions.these in general, have different representation on different computers.
Non-primitive data structures• These are more sophisticated data
structures. These are derived from primitive data structures
• The non-primitive data structures emphasize on structuring of a group of homogeneous(same type) or non-homogeneous(different type) data items.
stacks
• Stack is non-primitive linear data structures. It is an ordered list in which addition of new data item and deletion of already exiting data items is done from only one end, know as top of stack (TOS).
• As all the deletion and insertion in a stack is done from top of the stack ,the last added element will be the first to be removed from the stack.
• Example :- a common model of a stack is plates in a marriage party or coin stacker. Fresh plates are “pushed” onto the top and “popped” of the top.