Professional Documents
Culture Documents
List Ds
List Ds
List Ds
*A List (linear linked list) can be defined as a collection of variable number of data items called nodes.
* Each node divides into two part. One part information and second part memory address of next node.
List:
single linked list,Double linked list, Single circular linked list,Double circular linked list
Primitive data :
Integer,
Character,
Float,
Pointer.
List :
Linear:
Stack
Queue
Linked list
Nonlinear.
Trees
Grass
Array.
Traversal
Insertion
Selection
Searching
Sorting
Merging
destroy all deleting
Binary sort
Linear sort
Quicksort
merge sort
insertion sort
Selection shot.
Array:
Stuck
Stack is a linear data structure which follows a particular order in which the operation are
performed.non primitive.The order may be last in first or first in last.insertion push deletion pop .
push add a new item. pop it remove the top item from the stack. peek it returns the top item from the
stack but does not remove it.Empty it tests whether the stack is empty .size it returns the number of
item.