cs301 final term solved papers by waqar. Introduction to Data Structures. Let’s discuss why we’d like data structures and what kind of problems are often solvedwith their use. Data structures help us to arrange the info within the computer, resultingin more efficient programs.
An efficient program executes faster and helps minimizethe usage of resources like memory, disk. Computers are becoming more powerful withthe passage of your time with the rise in CPU speed in GHz, availability of fasternetwork and therefore the maximization of disc space.
Therefore people have started solvingmore and more complex problems. As computer applications are getting complex,so there’s need for more resources. This doesn’t mean that we should always buy a newcomputer to form the appliance execute faster.
Our effort should be to ensue that thesolution is achieved with the assistance of programming, data structures and algorithm.What does organizing the info mean? It means the info should be arranged in away that it’s easily accessible. the info is inside the pc and that we want to ascertain it.
We can also perform some calculations thereon. Suppose the info contains somenumbers and therefore the programmer wants to calculate the typical, variance etc.May be we’ve an inventory of names and need to look a specific name in it. To solvesuch problems, data structures and algorithm are used.
Sometimes you’ll realizethat the appliance is just too slow and taking longer. There are chances that it’s going to bedue to the info structure used, undue to the CPU speed and memory. we’ll seesuch examples.
within the assignments, you’ll also check whether the info structure inthe program is useful or not. you’ll have two data structures and check out to decidewhich one is more suitable for the resolution of the matter.
CS301 final term solved papers by waqar