Posts

Showing posts from March, 2021

Sorting & Searching

Image
_____________________________________________________________

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

Overview Of Basic Data Structure

Image
Let's start our data structure journey. Before we start let me give you a little overview what we are gonna learn form here. 1. We will learn all the basics of data structures. /*   O' yeah this is my little overview*/ Let's visualize what are basic data structures. 😄 Btw I'll try to make you pro at data structure. Understand what is happening. Than you can easily do what you want to do with data structure am I right 😃. I think I'm right. Ok let's begin . /*I'll provide some link so that you can implement it. Yes in Java*/ Basic Data Structure Data structure is a way to organized data so that we can use data  effectively . Now let's see what if we use data structure and we don't what happens than, Ex: Suppose, We have a class called A there is a 5 student called 3,5,9,6,1 now, No Data Structure is used, A={3,5,9,6,1} Using Data Structure than, A={1,3,5,6,9} Which one is easy to work with second one right. This is why we need to know data structure