1.Data structure is different
arrangement of data elements ,which accessing in different ways.
2.data structure that has
sequential relation ship between data
elements is linear data structure .like array ,linked list3 data structure that not has
linear relationship is non linear data structure like :tree,graph4.stack is data structure which
is also known as LIFO or last in first out data structure.5. Queue known as FIFO ,first
in first out arrangement of data elements6. stack can be implement by
array or linked list.7.queue can be implement by
array or linked list8. stack has one pointer which
always point to top most element of stack .9. inserting a element in array
in known as push operation in stack .10 deleting a element in array
is knwn as pop operation .11 push operation increase top value by one.12pop operation decrease value
of top by one .13.in array implemented stack,stack has overflow
condition.14 overflow means no insertion possible now,because its capacity is fixed to store
.array has limited capacity to store.so it has overflow condition.15 underflow means empty
condition,no deletion possible .16.queue has two pointer front
and rear.17 front point to first element
of queue .18 rear point to last element
of queue .19 when deletion perform in
queue ,front increase by one .20. when insertion perform in queue, rear
increase by one .21.rear=size-1 is over flow condition for queue22.top==size-1 is overflow
condition for stack23 rear==front is condition
when one element in queue24 top=-1 is stack underflow
condition .25 rear=front =-1 is queue
underflow condition .26. linked list is linked
sequential arrangement of self referential structure instance called node.27 linked list consist of number
of node .28 each node contain
pointer of same type .29one node keep address of
other node ,known as linking of node.30linked list has special
pointer start.31 start point to first node of
linked list .32start help to process linked
list.
33 array
|
Linked list
|
Consecutive
memory allocation
|
Discrete memory
allocation
|
both random and
sequential access access
|
Sequential
access
|
Relation
between element
|
No relation
|
Pointer not
must
|
Pointer
essential
|
Data
structure
|
|||||
Simple
|
Compound
|
||||
Array
|
|
|
linear
|
Non linear
|
|
Structure
|
|
|
Stack
|
Tree
|
|
|
|
|
Queue
|
graph
|
|
|
|
|
Linked
|
|
|
|
|
|
|
|
No comments:
Post a Comment