×
☰ Menu

Data Structure Operations

The data appearing in our data structure is processed by means of certain operations. Infect the particular data structure that one chooses for a given situation depends largely on the frequency with which specific operations are performed. The following data structure operations play a major role in the processing of data:

1: Creation: This is the first operation in the process of creating a data structure. This is simply the declaration and initialization of the data structure, as well as the reservation of memory locations for data elements.

2: Insertion: Adding new records to the structure.

3: Deletion: Removing a record from the structure.

4: Updating: It changes the data values of the data structure.

5: Traversing: Accessing each record only once so that specific items in the record can be advanced.

6: Searching: Locating the record with a given key value, or locating all records that satisfy one or more conditions in the data.

7: Sorting: Sorting is the process of arranging data elements in a logical order, such as ascending and descending order.

8: Merging: Consolidate the data elements from two separate sorted sets into a single sorted set.

9: Destroying: This must be the last operation of the data structure, and it should be used when the data structure is no longer required.