What are Data Structure and What are Algorithms ?

Sumeet Panchal
2 min readOct 2, 2019

--

  1. What are Data Structures(DS) ?

Data Structure is the way of organising data, which enables the data to be processed in an efficient way.

Some of the common Data Structures include:

  1. Array
  2. LinkedList
  3. Stack
  4. Queue
  5. Tree
  6. Hashing
  7. Graph etc…..

2. What are Algorithms ?

Algorithms are the steps/methods which are followed to solve a particular problem.

For eg : Suppose we are trying to prepare a home-made salad. Lets view it with an angle of data structures and algorithms.

If you look at the above diagram we have total six steps to make a home made salad, which may vary depending on the needs.

Step 1. Contains the bucket of mixed fruits and vegetables in an unorganised manner which is very difficult to process in term of picking up a particular fruit or vegetable.

Step 2. Here we apply the Data Structure and organise the bucket of fruits, which now enable processing of them with ease.

Step 3, 4, 5, 6. Are the steps which we have followed to prepare the salad and is called as Algorithms.

3. Types of Data Structures.

In the above diagram the Logical DS are dependent on the Physical DS.

.

.

.

.

So we hope till now you have understood the concept of Data Structures and Algorithms and how they differ. Please feel free to ask questions or give feedback.

https://sumeetpanchal21.wixsite.com/website

--

--

Sumeet Panchal
Sumeet Panchal

Written by Sumeet Panchal

Programming enthusiast specializing in Android and React Native, passionate about crafting intuitive mobile experiences and exploring innovative solutions.

No responses yet