Why Data structure is important for a programmer?

Data structure is a building block for a programmer, without data structure a programmer will be like a monkey programmer.

One of the famous statement of Linus Torvalds says:

I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad programmers worry about the code. Good programmers worry about data structures and their relationships.

-Torvalds, Linus

While starting the programming life, a learner should be aware that why data structure is important for them.

Data structure can be defined as : Data structure are used to store the data in organised manner.

Whenever a programmer is working with data of an organization, it is highly required that the data need to be kept in organised form.Learn Data Structure with C It is not all about store the data and fetching the data to display to the user. What is required is, how a programmer is smartly using the algorithm to find the data.

As a computer programmer, the major jobs are basically divided into three steps:

  1. Take Input
  2. Process it
  3. Return with the output

The input can be in any form, while booking a ride on Tootle, you give starting point and destination as input on Maps, while logging into your facebook account; your id and password and so on.

After this, the computer system processes your data(input) and gives us output in some specified format.

To make the process efficient, a programmer can do optimization in step 2. (Process it), where we have data structure.

The dictionary stores words in Alphabetical Order. This data structure is followed by a dictionary. The algorithm for searching a word in a dictionary is called Binary Search Algorithm.

Let us understand in simple way,

Question: Where do you store data in a computer program?

Answer:  In a variable, int empId=113;

What if we need to store list of numbers, employees, movies, online tickets? And we need to  do processing on it, let’s say process employee payroll/ book tickets.

Everything here cannot be stored in a simple variable, we need more sophisticated structure to hold this data.

This is known as Data Structure.

 

If you’re a programmer or want to learn programming, you must learn data structure.

 

At neosphere, we train on data structure in our course “Fundamental of Programming” which is very important if you’re planning to move on to the next level of courses like Java, .NET, PHP, Python, Android or iOS. With Data Structure you can very well organise your data.

 

Share