-->
Search here and hit enter....

Operations on Data Structure | Part 9 | IDA using C

  Hello Viewer! how are you? I hope you are very well. Today I have learned about Operations Data Structure. below I have written whatever I learn today ... 

operations on DS


In this section, we will talk about Operations that we can perform on the various Data Structure

TRAVERSING 

It means to access each data item exactly once so that it can be processed.

  • For example: to print names of all students in a class.


SEARCHING

It is used to find the location of one or more data items that specify the given constraints.

  • Such a data item may or may not be present in the given collection of data items.
  • For example: to find the name of all students who secured 100 Marks in Mathematics.

INSERTING

It is used to add new data items to the given list of data items.
  • For example: to add the details of a new student who has recently joined the course.

DELETING

It means to remove a particular data item from the given list of data items.
  • For example: to delete the name of the student who has left the course.

SORTING

Data items can be arranged in some order like ASCENDING order or DESCENDING order depending on the type of application.
  • For example: arranging the names of students in a class in alphabetical order or arranging the students by marks obtained.

MERGING
  • A list of sorted data items can be combined to form a single list of sorted data items.


Many times, two or more operations are applied simultaneously in a given situation.
  • For Example: If we want to delete the details of a student whose name is "Shraddha", then we 1st have to search the list of students to find whether the record of "Shraddha" exists or not and if exists then at which location. So that details can be deleted from a particular location.


That's All for Today! I hope You like and understand whatever I have written. If you find any error don't forget to mention it in the comment section or mail me. 💗💗

Note:- I learned this from "Data Structure using C" Book written By Reema Thareja.


FB COMMENTS ()