A gentle and short intro on Data Structures and Algorithms

ยท

1 min read

This article is dedicated to guiding upcoming and junior software engineers in comprehending data structures and algorithms.

Contents

  • What is DSA

  • Data Structures

  • Algorithms

  • Types of Data Structures

What is DSA

Data Structures and Algorithms serve as the foundational elements that empower the creation of efficient and robust computer programs.

Let's break it down

Data Structures:- It is a storage that can be used to store and organize data in a specialized format.

Algorithms:- This involves the step-by-step instructions for solving problems. For example, An algorithm to add two numbers goes as follows

1 Take the two inputs

2 Add the inputs using the + operator

3 Display the result

Types of Data Structure

It is important to choose the right data structure when solving a DS problem. Data structures are divided into two categories:

  • Linear data structure: This stores and arranges elements sequentially. Examples are Array, Stack, Queue, Linked List, etc.

  • Non-linear data structure: Elements are stored and arranged in a non-sequential fashion. Examples are Heap, Trees, Graph, Hash Table, etc.

References

https://www.programiz.com/dsa

https://www.geeksforgeeks.org/difference-between-linear-and-non-linear-data-structures/

If you found this post helpful, please like and share, Thanks. Your feedback and support are valuable to me. ๐Ÿ‘ ๐Ÿ˜Š

ย