DEV Community

Cover image for Algorithms and Data structure- A heads up
carrot.py
carrot.py

Posted on

Algorithms and Data structure- A heads up

Hi Folks,

Before getting into it we all have come across the word saying "what algorithm you used to solve this problem?" and our answer obviously is

Image description

This Blog-series talks about the basics of algorithms and DS(Data Structure), this blog will give you a little heads up on Algorithm ok let's learn algo(awɡu)

what is Algorithms?

An algorithm is any well-defined computational procedure that takes some value, as input and produces some value, or set of values, as output. An algorithm is thus a sequence of computational steps that transform the input into the output.

In simple terms let's say you need to drop your friend at the Railway station before 10 pm, For that you need to build an algorithm to find the Shortest Route (which is your output), you would consider their parameters the distance, number of alternative routes, speed, traffic and time(these are your input) using which you can do some analysis and come up with the shortest route

likewise, the algorithm is a series of steps that is implemented with the given input to get the desired output.

why the Algorithm is needed to solve a problem?

From the above example if you go on your wish you cant drop your friend at the correct time, similarly, a computational operation working on an algorithm can give you the desired output efficiently

What is a Data structure?

A data structure is a way to store and organize data in an ordered fashion. so that it's easy to access and manipulate

it's good to learn many DS as possible so that it's easy to build or implement an algorithm

Algorithm in real-life!

we might wonder are we using those in real life! the answer would be yes and some of the examples are

  1. Search algorithms- When we search a file in folder or a link in the internet it uses any of the famous search algorithms to get the result at minimal time

  2. E-commerce - Technologies used in electronic commerce include encryption and digital signatures which are based on numerical algorithms

To sum up These are some Infos to know about Algorithms and DS we will see more about them in later part of the Series

Thank You!!

Top comments (0)