A collection of useful algorithms in Dart with keeping performance and flexibility on mind.

Overview

algorithmic

plugin version dependencies

A collection of useful algorithms in Dart with keeping performance and flexibility on mind.

Usage

The following import will give you access to all algorithms declared in this library.

import 'package:algorithmic/algorithmic.dart';

You can also import these algorithms separately:

Libraries Imports
Search algorithms 'package:algorithmic/searching.dart'

Algorithms

Searching algorithms

Linear Search

Exported Methods Performance Tests Benchmark Since
linearSearch() O(n) ✔️ ✔️ 0.0.1
linearSearchBy() O(n) ✔️ ✔️ 0.0.4
linearSearchReversed() O(n) ✔️ ✔️ 0.0.1
linearSearchReversedBy() O(n) ✔️ ✔️ 0.0.4

Binary Search

Exported Methods Performance Tests Benchmark Since
lowerBound() O(log n) ✔️ ✔️ 0.0.3
lowerBoundBy() O(log n) ✔️ ✔️ 0.0.4
upperBound() O(log n) ✔️ ✔️ 0.0.3
binarySearch() O(log n) ✔️ ✔️ 0.0.3
binarySearchMax() O(log n) ✔️ ✔️ 0.0.3

Benchmarks

All benchmarking files are stored inside the './benchmark' folder. You can check it directly via the following command:

$ dart run benchmark

You can also check the benchmark.log file for the benchmark result that I got on my PC.

You might also like...

Hack&Heal hybrid hackathon 2022 - Body & Mind topic

Hack&Heal hybrid hackathon 2022 - Body & Mind topic

Meditation App Hack&Heal hybrid hackathon 2022 - Body & Mind topic The MVP is available for mobile browsers here. The Problem 3.6 million citizens hav

Jun 19, 2022

Connect your flutter app to firebase, use firebase's Authentication. Don't mind my poor UI. 😬

flutter_email_auth A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

May 2, 2022

The Sculptor of your mind.

FreeUp-The Sculptor of your mind. Introduction Its a journal app/AI friend app made using Flutter and AI chatbot. It aims to provide different functio

Nov 14, 2022

Implementation of data structures and algorithms in Dart programming language.

Algorithms in Dart Implementation of several algorithms with Dart programming language. Use dartdoc to generate documentation. Lists List data structu

Dec 24, 2022

Flutter-Apps-Collection: a collection of apps made in flutter for learning purpose

 Flutter-Apps-Collection: a collection of apps made in flutter for learning purpose

Flutter-Apps-Collection This is a repository of a collection of apps made in flutter for learning purpose Some Screenshots . . . Apps build in Flutter

May 27, 2022

A repo for me to test and collate popular algorithms.

Common Algorithms written in Dart This repo is a result of practicing the algorithms presented on www.geeksforgeeks.org, as well as some coding challe

May 28, 2022

Sorting algorithms visualizer in Flutter.

Sorting algorithms visualizer in Flutter.

Sorting Algorithms Visualizer in Flutter Algorithms implemented Insertion Sort Selection Sort Bubble Sort Plugins used fl_chart To run this app run fl

Aug 27, 2022

A mobile application that visualizes various sorting algorithms such as Bubble sort, selection sort, quick sort etc. The sorting process is visualized as the rearrangement of vertical lines of different lengths from shortest to tallest.

A mobile application that visualizes various sorting algorithms such as Bubble sort, selection sort, quick sort etc. The sorting process is visualized as the rearrangement of vertical lines of different lengths from shortest to tallest.

Sorting Visualiser This is a simple sorting visualisation app built using the flutter framework. The user can select sorting algorithms like Bubble so

May 13, 2022

This is a simple open source project where you can easily contribute by uploading algorithms that are not specified in the list.

This is a simple open source project where you can easily contribute by uploading algorithms that are not specified in the list.

Support this project by giving it a thumbs up! AlgoBook A new Flutter application for algorithms. This app is mainly to refer to the algorithms that a

Jul 23, 2022
Owner
Sudipto Chandra
Software Engineer | ❤️s Python, Flutter, Java, Vue & Typescript.
Sudipto Chandra
Superpowers for Dart. Collection of useful static extension methods.

If you miss an extension, please open an issue or pull request Resources: Documentation Pub Package GitHub Repository On this page you can find some o

Simon Leier 955 Jan 8, 2023
⚒️ A monorepo containing a collection of packages that provide useful functionality for building CLI applications in Dart.

⚒️ Dart CLI Utilities A monorepo containing a collection of packages that provide useful functionality for building CLI applications in Dart. Document

Invertase 14 Oct 17, 2022
A collection of useful scripts for dart or flutter projects

DFS - Dart Flutter Scripts Warning: everything is WIP. A collection of useful scripts for dart or flutter projects. The scripts can be executed in the

null 20 Dec 24, 2022
A personal collection of useful scripts for everyday development, written in Dart.

Suitcase ?? Generated by the Very Good CLI ?? A collection of useful personal scripts and tools. TODO: Improve this README Getting Started ?? If the C

Jeroen Meijer (Jay) 14 Nov 22, 2022
A collection of Flutter apps with some useful tricks

Flutter Apps Collection A simple collection of flutter applications with some common use cases & useful little tricks. The apps have been tested in iO

Anis Benna 5 May 12, 2022
A collection of useful packages maintained by the Flutter team

Flutter Packages This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., package

Flutter 2.3k Dec 30, 2022
A digital diary and mood tracking app that helps you in keeping track of your mood and productivity throughout the month/year.

StarBook ✨ A digital diary that can help you in keeping track of your mood and productivity throughout the month. Mood tracker is a good way to see ho

Hashir Shoaib 73 Dec 23, 2022
Simple app for easy shopping list making, developed with simplicity in mind.

Fast Shopping Fast Shopping is a mobile application developed with simplicity in mind. It allows you on having a simple set of shopping lists, that yo

Albert Wolszon 208 Dec 31, 2022
Generic validator - A generic validator with business logic separation in mind

This package provides APIs to facilitate separating validation and business rule

Ahmed Aboelyazeed 5 Jan 3, 2023