Data Structure and Algorithms

Datastructures and Algorithms

Introduction to Data structures and Algorithms

A data structure is a particular way of organizing and storing data in a computer so that it can be accessed and modified efficiently. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.

OR

It’s just an arrangement of data. You can define a way that you interact with this data, and the way that it’s arranged in memory. some data structure are in contiguous blocks of memory. which means they’re located next to each other.

Types of data structure

Linear structures

  1. linked list
  2. Stacks
  3. Queues
  4. Hash Tables

Non linear data structures

  1. Trees
  2. Graphs