Hello Viewer! how are you? I hope you are very well. Today I have learned about the Criteria for selecting Data Structure, Elementary Data Structure Organization. below I have written whatever I learn today ...
Analysis is very important for choosing appropriate Data Structures and designing any program. A program designer with a poor understanding of the Data Structure concept ignore this analysis step and apply a Data Structure with which they can work comfortably.
The applied data structure may not be appropriate for the problem at hand and therefore may result in poor performance. (like slow speed of operation)
Conversely, if a program meets its performance goals with a Data Structure that is simple to use, then it makes no sense to apply complex Data Structure to that problem to exhibit the programmer's skill.
-When selecting a Data Structure to solve a problem, the following steps must be performed:-
- Analyze the problem to determine basic operations must be supported (like inserting, deleting, searching item for Data Structure)
- Quantify the resource constraints for each operation.
- Now Finally, Select the Data Structure that best meet its requirements.
- While one of the Data Structures may permit adding of new Data Items only at the beginning, the others may allow them to be added at any position, while one data structure may allow accessing data items sequentially, the other may allow random access of Data.
- So selection of an appropriate Data Structure for the problem is a crucial decision and may have a major impact on the performance of the program.
- So As a programmer, it is mandatory to choose an appropriate data structure for a program.