Posts

Graphs

Image
_____________________________________________________________

Trees

Image
_____________________________________________________________

Queue

Image
Queue _____________________________________________________________

Stack

Image
Stack _____________________________________________________________ Push() ->  Pop()  -> Top()  -> IsEmpty()-> Algorithm Code Examples _____________________________________________________________

Linked List

Image
 Linked List _____________________________________________________________ Simple Linked List Traversal:   Algorithm Code Examples Searching: Algorithm Code Insertion: Algorithm Code Deletion: Algorithm Code Sorting: Algorithm Code Merging: Algorithm Code _____________________________________________________________ Doubly Linked List Traversal:   Algorithm Code Searching: Algorithm Code Insertion: Algorithm Code Deletion: Algorithm Code Sorting: Algorithm Code Merging: Algorithm Code _____________________________________________________________ Circular Linked List Traversal:   Algorithm Code Searching: Algorithm Code Insertion: Algorithm Code Deletion: Algorithm Code Sorting: Algorithm Code Merging: Algorithm Code _____________________________________________________________

Arrays

Image
What is array? Do you know what it is? Array is a collection of items or values which is stored contiguously(contiguous means sequentially no deviation  between the elements or empty space between them. That's for we can easily calculate the position of each element).  Keep in mind that C/C++ array and Java array not same. In Java arrays are dynamically allocated in heap . But in C/C++ arrays are not dynamically allocated like java. /* If you see some algorithm have no explanations that means I made though algorithm too much simple anyone can understand. Also in code section(means where I written code) I also tell you what is actually happening */  Operations on Array Traversal :  Processing each element in the list . Search :  Finding the location of the element with a given value or the record ( record is the collection of field values of a given entity (entity is something that has certain attribute or properties which may be assigned values) set )  with a given key . Insertion