# c5-ts-algorithms

> a small library written in typescript for algorithms

Latest version **0.0.4** (published 2023-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install c5-ts-algorithms
pnpm add c5-ts-algorithms
yarn add c5-ts-algorithms
bun add c5-ts-algorithms
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-02-11 |
| First published | 2023-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 293.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | C5m7b4 |
| Maintainers | c5m7b4 |

## Links

- npm: https://www.npmjs.com/package/c5-ts-algorithms
- Repository: https://github.com/C5m7b4/c5-ts-algorithms
- Homepage: https://github.com/C5m7b4/c5-ts-algorithms#readme
- Issues: https://github.com/C5m7b4/c5-ts-algorithms/issues
- npm.io page: https://npm.io/package/c5-ts-algorithms

## Recent versions

- 0.0.4 (latest) — 2023-02-11
- 0.0.3 — 2023-02-11

## README

# c5-ts-algorithms

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/C5m7b4/c5-ts-algorithms/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/C5m7b4/c5-ts-algorithms/tree/master)
[![codecov](https://codecov.io/gh/C5m7b4/c5-ts-algorithms/branch/master/graph/badge.svg?token=T6MOMAM57Z)](https://codecov.io/gh/C5m7b4/c5-ts-algorithms)
![CircleCI](https://img.shields.io/circleci/build/github/C5m7b4/c5-ts-algorithms/master?style=plastic)
![awesome](https://img.shields.io/badge/awesome-made%20with%20awesome-brightgreen)
![GitHub package.json version](https://img.shields.io/github/package-json/v/C5m7b4/c5-ts-algorithms?style=plastic)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/C5m7b4/c5-ts-algorithms/master?style=plastic)
![GitHub](https://img.shields.io/github/license/C5m7b4/c5-ts-algorithms?style=plastic)

This is a small library that contains some algorithms.

- [Adjacency Graph](#adjacency-graph)
- [ArrayList](#arraylist)
- [AVL Tree](#avl-tree)
- [BinarySearch](#binarysearch)
- [Binary Search Tree](#binary-search-tree)
- [BubbleSort](#bubble-sort)
- [CompareBinaryTrees](#comparebinarysearchtrees)
- [DoublyLinkedList](#doublylinkedlist)
- [InsertionSort](#insertion-sort)
- [LinearSearch](#linearsearch)
- [LinkedList](#linked-list)
- [MergeSort](#merge-sort)
- [QuickSort](#quick-sort)

## Adjacency Graph

A data structure used to represent relationships

## ArrayList

A class implementation of the Javascript Array.

![alt arraylist](images/arraylist.png)

## AVL Tree

This is basically a Binary Search Tree, but it can auto balance itself. It's pretty cool. We also have a visualizer to go with it in the example project.

![alt avl](images/avl.png)

## BinarySearch

A divide and conquer search method

## Binary Search Tree

A tree where the left nodes must be smaller than their parent node and all nodes to the right must be larger than the parent node.

![alt bst](images/bst.png)

## Bubble Sort

A very simple sorting algorithm

![alt bubblesort](images/bubblesort.png)

## CompareBinarySearchTrees

An algorithm that will compare two Binary Trees and tell you if they are a match or not

## DoublyLinkedList

A data structure where each node has a pointer to the next and previous node.

![alt dll](images/dll.png)

## Insertion Sort

Another sorting algorithm

![alt insertionsort](images/insertionsort.png)

### LinearSearch

A brute force search

## Linked List

This is a data structure that flows one way. Each object has a pointer to the next object.

![alt linkedlist](images/linkedList.png)

## Merge Sort

A divide and conquer sorting method

![alt mergesort](images/mergesort.png)

## Quick Sort

A divide and conquer sorting algorithm

![alt quicksort](images/quicksort.png)

---
_Source: https://npm.io/package/c5-ts-algorithms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
