PUSH OPERATION ON STACK
Translation PUSH OPERATION ON STACK In executing the procedure PUSH one must test whether there is a room in the stack for the new element; if not then the condition is overflow i.e. stack
STACK OPERATIONS
TranslationSTACK OPERATIONS #include<iostream.h> #define max 5 int top=-1; int stack[max]; void push(int); void pop(); void display(); main() { push(10); display(); push(20); display(); push(30); display(); push(40); display(); push(50); display(); push(60); display(); pop(); display();
DELETION FROM AN ARRAY
TranslationDELETION FROM AN ARRAY There may be deletion of any element from the array. first the location is found of the element in the array and the item is deleted from the
LINEAR ARRAYS
TranslationLINEAR ARRAYS A linear array is a list of finite number n of homogeneous data elements such that: a) The element of the array are referenced respectively by an index set consisting
GARBAGE COLLECTION
TranslationGARBAGE COLLECTION In computing, trash collection (GC) may be a variety of automatic memory management. the rubbish collector, or simply collector, tries to reclaim garbage, or memory occupied by objects that are
BINARY SEARCH ALGORITHM
TranslationBINARY SEARCH ALGORITHM In the Binary search, the condition is that the elements of the array should be in sorted order. then we find the mid value of the elements and then
BUBBLE SORT ALGORITHM
TranslationBUBBLE SORT ALGORITHM Bubble sort is a sorting technique in which the sort is processed as n-1 passes. where n is the number of elements in the array. it sorts the elements
ARRAY ELEMENT INSERTION ALGORITHM
TranslationARRAY INSERTION To insert an element into a linear array at the specific position we need to use the following algorithm. ARRAY ELEMENT INSERTION ALGORITHM Let ARR be a linear array and







Contact @ Birender Singh