In this tutorial(What is compaction in memory management), I am going to explain one of the methods of dynamic memory management which is named compaction. In this process, all marked or used node is shifted to one end, and variable…
Garbage collection is a method to detect and collect free nodes. The node that is in use and allocated is not detected whereas any no longer in use is recovered.|What is garbage collection with an example| In this blog post(),…
Dynamic memory management is the memory that is given instantly to a program variable or data structure when it is needed. Here we are explaining this dynamic memory management phenomenon about the data structure. In this blog post(Dynamic Memory Management),…
In this blog post(Josephus problem algorithm), I am going to discuss an interesting Josephus problem that you would have studied in the data structure. This problem(Josephus problem algorithm) includes soldiers surrounded by the enemy and only one horse that a…
A list with various numbers of the node containing data and address pointer and the list starts and finishes at the same first node is known as a circular linked list. this list forms a circle and has a common…
A linked list is the collection of data elements or information in a linear fashion which is also known as nodes that are again linked to another node. In this logical ordering, each element is pointed by its previous element…
If we can insert and remove the element inside a queue at any position based on some specific or predefined priority then this type of queue is known as a priority queue.|What is the priority queue with an example| Within…
In this blog post(Stack vs Queue), I am going to let you know about the difference between stack and queue. As we know both are a non-primitive linear data structure that has their importance for different scenarios. You can also…
I am going to discuss the queue in this blog post(What is a queue in a data structure). A queue is also known as a non-primitive linear data structure. In this queue, the element is grouped in order. Inside this…
In this blog post(What are the stack and its operations), I am going to let you know about the stack and its function. A stack is one of the important data structures and comes in the category of non-primitive data…