Data Structure Philosophy |
|
|
|||
Let’s talk about the philosophy of
data structure. Each data structure has costs and benefits. Any data
structure used in your program will have some benefits. For this, you have to
pay price. That can be computer resources or the time. Also keep in mind that
you are solving this problem for some client. If the program is not
efficient, the client will not buy it. In rare cases, a data structure may be
better than another one in all situations. It means that you may think that
the array is good enough for all the problems. Yet this is not necessary. In
different situations, different data structures will be suitable. Sometimes
you will realize that two different data structures are suitable for the
problem. In such a case, you have to choose the one that is more appropriate.
An important skill this course is going to lend to the students is use the
data structure according to the situation. You will learn the programming in
a way that it will be possible to replace the one data structure with the
other one if it does not prove suitable. We will replace the data structure
so that the rest of the program is not affected. You will also have to attain
this skill as a good programmer. There are three basic things
associated with data structures. A data structure requires: –
space for
each data item it stores –
time to
perform each basic operation programming effort |
|||||
|
BACK |
HOME |
NEXT |
||