programjs

0.1.1-0 • Public • Published

program.js

NPM

Travis bithound

A comprehensive and lightweight npm package of common data structures and algorithms to accelerate development.

About

Why is this module named program.js? An inspiration for this project was computer science pioneer Niklaus Wirth: author of the classic textbook Algorithms + Data Structures = Programs. We believe that the philosophy of algorithms and data structures being at the core of software is important, so this module is made in the textbook's honor.

Textbook

Current implementations:

Algorithms

  • Bubble Sort
  • Insertion Sort
  • Selection Sort
  • Quick Sort
  • Merge Sort
  • Factorial
  • Fibonacci
  • Combinations
  • Permutations

Data Structures

  • Node
  • DoubleNode
  • SinglyLinkedList
  • DoublyLinkedList
  • Stack
  • Queue
  • Heap
  • TreeNode
  • Binary Search Tree
  • HashTable

Usage

  1. Install the package using npm install --save programjs or yarn add programjs
  2. Import the feature set you would like to use (e.g. import { algorithms } from 'programjs')
  3. Access specific implementation through the feature set object (e.g. const sorted_array = algorithms.bubble_sort(array))

Contributing

If you're interested in contributing to program.js, refer to our guide.

License

We believe in open source projects. Our code is licensed under The GNU General Public License v3.0.

Readme

Keywords

none

Package Sidebar

Install

npm i programjs

Weekly Downloads

0

Version

0.1.1-0

License

MIT

Last publish

Collaborators

  • elore