Computer Science, asked by Omnavasare121, 10 months ago

explain in brief any six data structure operation.​

Answers

Answered by vanshikavikal448
53

hey mate your answer is here ⬇️⬇️⬇️⬇️

Data structures are building blocks of a program. A program built using improper data structures may not work as expected. So as a programmer it is mandatory to choose most appropriate data structures for a program

The term data means a value or set of values. It specifies either the value of a variable or a constant (e.g., marks of students, name of an employee, address of a customer, value of pi, etc.)

While a data item that does not have subordinate data items is categorized as an elementary item, the one that is composed of one or more subordinate data items is called a group item. For example, a student’s name may be divided into three sub-items—first name, middle name, and last name—but his roll number would normally be treated as a single item.

1) Traversing - It means to access each data item exactly once so that it can be processed. For example, to print the names of all the students in a class.

2) Searching - It is used to find the location of one or more data items that satisfy the given constraint. Such a data item may or may not be present in the given collection of data items. For example, to find the names of all the students who secured 100 marks in mathematics.

3) 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.

4) Deleting - It means to remove (delete) a particular data item from the given collection of data items. For example, to delete the name of a student who has left the course.

5) 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 an alphabetical order, or calculating the top three winners by arranging the participants’ scores in descending order and then extracting the top three.

6) Merging - Lists of two sorted data items can be combined to form a single list of sorted data items.

Answered by vinayak5920
5

above answer is correct...!!

Similar questions