DEV Community

Bill Odida
Bill Odida

Posted on

Data Structures and Algorithms in Dart: Introduction

I started learning Dart and Flutter about three years ago and have become a Dart geek ever since. I have decided to be writing a series of blog posts on the language itself.

What better way to delve deep into a language than by looking at Data Structures and Algorithms.

This post assumes that you have some basic knowledge of programming and understand the basic definition of algorithms. I believe programmers are like dancers and while dancers dance to music we do so to algo-rythms. See what I did there?
Image description

We'll start with Data Structures.

What Are Data Structures ?

By Definition from Geeks For Geeks

A data structure is a storage that is used to store and organize data. It is a way of arranging data on a computer so that it can be accessed and updated efficiently.

Data Structures can be classified into two categories :

  • Primitive Data Structures

  • Non-Primitive Data Structures

Primitive Data Structures

These are the pre-defined data structures. In most programming languages, these include String, Int, double, boolean , long. short, float, byte and char .

Non Primitive Data Structures

These are used in the storage of a collection of elements. They can be further grouped into

  • Linear Data Structures

  • Non Linear Data Structures

Linear Data Structures

These are data structures that store elements in a linear sequence. You can go through all the data in a linear data structure through one run.

Top comments (0)