Introduction to Data
Structures |
|
|
|||
Let’s discuss why we need data
structures and what sort of problems can be solved with their use. Data
structures help us to organize the data in the computer, resulting in more
efficient programs. An efficient program executes faster and helps minimize
the usage of resources like memory, disk. Computers are getting more powerful
with the passage of time with the increase in CPU speed in GHz, availability
of faster network and the maximization of disk space. Therefore people have
started solving more and more complex problems. As computer applications are
becoming complex, so there is need for more resources. This does not mean
that we should buy a new computer to make the application execute faster. Our
effort should be to ensue that the solution is achieved with the help of
programming, data structures and algorithm. What does organizing the data mean?
It means that the data should be arranged in a way that it is easily
accessible. The data is inside the computer and we want to see it. We may
also perform some calculations on it. Suppose the data contains some numbers
and the programmer wants to calculate the average, standard deviation etc. May
be we have a list of names and want to search a particular name in it. To
solve such problems, data structures and algorithm are used. Sometimes you
may realize that the application is too slow and taking more time. There are
chances that it may be due to the data structure used, not due to the CPU
speed and memory. We will see such examples. In the assignments, you will also
check whether the data structure in the program is beneficial or not. You may
have two data structures and try to decide which one is more suitable for the
resolution of the problem. |
|||||
|
BACK |
HOME |
NEXT |
||