Posts

Showing posts from January, 2025

Data Structures - Part 1

Data Structures - Part 1 Data Structures (Abstract Data Types) - Part 1 (Array) Data structures are specific methods of organizing and storing collections of data in a way that enables efficient access and manipulation. In a previous article , we discussed python specific data structures (built-in data types: list, tuple, set & dictionary) . In this series of articles, we will explore common abstract data types (ADTs) that are language-agnostic. These ADTs can be classified into two categories: linear and non- linear. Linear data structures; Array , Linked List , Stack , Queue Non-linear data structures; Tree , Hash Map , Graph 1. Array Arrays are one of the most fundamental data structures, designed to store collections of data (elements) of the same data type . These elements are stored in contiguous memory locations, allowing access to each element using its index. Arrays are prone to an exception if accessed with an index that exceeds the array’s boun...