Simple, Extendable, Data Structures + Algorithms
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
This project was born out of the need to have very small base line data structures with the intent to extend them in the projects they're imported in, or you could simply just use the baseline structures. Making these data structures very generic to cover a wide range of use is important for this project.
As with any other npm package, npm install.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm i @ritterg/simple-dsa
You will be able to import data structures straight from the package based on category.
import {
// Lists
LinkedList,
SingleLinkedList,
SinglyLinkedList,
DoubleLinkedList,
DoublyLinkedList,
// Trees & Heaps
Graph,
BinarySearchTree,
BSTNode,
HeapDataNode,
BinaryHeap,
// Queues
Queue,
PriorityQueue,
// Stack
Stack,
} from "@ritterg/simple-dsa";Then just instantiate a new DS via the new keyword
```js
const list = new LinkedList();
```
... more documentation for DS Signatures coming soon
-
Graph
- Weighted
- Unweighted
- Directed
- Undirected
-
Heap
-
Tree
- Binary Search
- Red Black
- AVL
-
Lists
- Linked Single
- Linked Double
-
Queue
- Priority Queue
-
Stack
-
Hash Tables
-
Algorithms
- Djikstras
- Revolving Calculated Window
See the open issues for a full list of proposed features (and known issues).
Feel free to contribute!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
Project Link: https://github.com/rgustave07/simple-dsa