Posts

Memory management technique of the data structure

There are two types of memory management techniques of data structure. These are :- v   Static Memory Allocation Technique :-                  Static memory allocation technique is used during compile time. In this all the variables occupy space in the memory whether they are assigned a value or not. EXAMPLE:                                 int a,b,c,d; a=b/c; printf (“b”);               In this we declare four variables a,b,c,d, but only three variables are used at compile time. But variable‘d’ also stored in to the memory.   v Dynamic Memory Allocation Technique :-              ...

DATA STRUCTURE OPERATIONS

The data stored in the data structure is processed by means of certain operations. The following operations are performed on to the Data Structure. These are :- v   Traversing :-                  Traversing means to access the each and every record exactly once, so that certain items in the record may process. v   Searching :-                  Searching means to find the location of the record with a given key value or finding of record which satisfy more than one condition.   v   Insertion :-                  Insertion means to insert a new element into the existing data structure. It means to add a new record into the existing data structure.   v   Deletion :-     ...

Data Structure Definition

“Data structure is a method or technique to store the data into the memory in an orderly manner, so that it can be easily accessed and efficiently used.” The data store into the memory in such a way that can be easily accessed and should be easy to understand. Data may be organized in many different ways. The logical or mathematical model of particular organization of data is called a DATA STUCTURE. TYPES OF DATA STRUCTURE :-   There are two types of data structure. These are :- 1. Linear Data Structure.     2.Non- Linear Data Structure 1. Linear data Structure:-                      In the linear data structure data is arranged in sequence (in order). Data structure whose components are processed sequentially such as array, stack, linked list, queue. 2. Non- Linear data Structure :-          ...