Is Data Structure and algorithm really important

Pritmayani
3 min readJul 21, 2022

If You are Programmer. So you heard about Data Structure and algorithms and you know that DSA Is in High demand in jobs

But Data Structure and Algorithm is really Important? So Answer This Question We Need to Understand What is the Data Structure and algorithm. Actually, Data Structure and algorithm Is two separate Things. However, they are frequently taught together as one course because they work hand-in-hand with each other. To best explain what data structures and algorithms are let’s first about each of them separately

Data Structure

Short Answer: A Data Structure is a named location that can be used to store and organize data

Long Answer: let Us Suppose it’s your mom’s birthday but no bakeries are open due to covid-related restrictions. So you decide to back a cake for her. But you do not know how to do it. The next thing you do is head over to everyone’s know-it-all best friend-google. You look up a recipe that you like and make note of it. The recipe describes step-by-step what you need to do to bake the perfect cake

No armed with the recipe, you gather the ingredients, mix them up as per the steps and back it in the oven. And voila, after a while, the cake is ready and you’re successful at your task.

What is an algorithm

Algorithm is a collection of steps to solve a particular problem.

It Sounds Pretty simple, right?

Well, let me tell you what all you learned from this hypothetical scenario-

· You learnt what an algorithm is

· You learnt about the characteristics of an algorithm

· You also learnt how data flows in an algorithm

· Right now, you must be wondering how you learnt all these things from just baking a cake. So let’s wait no more and deep dive into it!

The Recipe that you follow for backing a cake? That’s Nothing but an algorithm

Technically speaking, an algorithm is defined as a set of rules or a step-by-step procedure that are to be executed in a specific order to get the desired output.

How Do Data Structures and Algorithms Work Together?

There are many algorithms for different purposes. They interact with different data structures in the same computational complexity scale. Think of algorithms as dynamic underlying pieces that interact with static data structures.

The way data is expressed in code is flexible. Once you understand how algorithms are built, you can generalize across different programming languages. In a sense, it’s a bit like knowing how a related family of languages work syntactically. Once you glimpse the fundamental rules behind programming languages and their organizing principles, you can more easily switch between the different languages and learn each faster.

So Data Structure and algorithm is really important?

The simple answer is yes, You Need Data Structure and Algorithm for any kind of work if you software developer or you are or you want make your own app you need to organize your data to get the best out of it.

Let’s look at the example of the Library. Suppose, you want to have a book on set Theory from public library. To do that you have to first go the math’s section, then on set theory section. If these books are not organized in this manner and just distributed randomly then it will be really a cumbersome process to find a book on set theory.

This is the way a librarian organizes his books(data) into a particular form (data structure) to efficiently perform a task(find a book on set theory).

In this manner, we computer scientists process and look for the best way we can organize the data we have, so it can be better processed based on the input provided.

I Hope You Enjoy Reading My Blog

Want to connect

my Github Profile

My LinkedIn profile

--

--

Pritmayani

Python and Machine Learning || Backend Developer