1.

Some of the operations performed on data structures are given below: (i) Insertion (ii) Deletion (iii) Searching(iv) Sorting (a) Which of these operations may face underflow situation? (b) Explain this situation in the context of an appropriate data structure.

Answer»

(a) ii. deletion 

(b) a) Searching:

Searching is the process of finding elements in a data structure

(b) Inserting:

It is the process of adding new data at particular location is called insertion.

(c) Deleting-:

It is the process of removing a particular element from the data structure 

(d) Sorting-:

Arranging elements in a particular order(ascending or descending) is called sorting.

Examples are bubble sort and selection sort.



Discussion

No Comment Found