Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aniket965/algo-world
🔥Node module to use algorithms in one line🚀
https://github.com/aniket965/algo-world
algo algorithm algorithm-library javascript library library-free node npm
Last synced: 1 day ago
JSON representation
🔥Node module to use algorithms in one line🚀
- Host: GitHub
- URL: https://github.com/aniket965/algo-world
- Owner: Aniket965
- License: mit
- Created: 2017-01-26T17:37:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T15:35:22.000Z (about 7 years ago)
- Last Synced: 2024-10-12T20:08:18.067Z (about 1 month ago)
- Topics: algo, algorithm, algorithm-library, javascript, library, library-free, node, npm
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# algo-world [![Build Status](https://travis-ci.org/Aniket965/algo-world.svg?branch=master)](https://travis-ci.org/Aniket965/algo-world)
This is an node package which enable you to use different algorithms which are inbuilt in it
[NPM](https://www.npmjs.com/package/algo-world)
## Install
```
npm install algo-world
```
## Usage```javascript
const algoworld = require('algo-world');
array=[2,4,3,6,2,4,234,23,2,0,7,9,3,45,5,6,6,2,1,4];
algoWorld.sort.InsertionSort(array);
console.log(array);
```## Content
InsertionSort
```javascript
algoWorld.sort.InsertionSort(array);
```
MergeSort
```javascript
algoWorld.sort.MergeSort(array);
```
ShakerSort
```javascript
algoWorld.sort.ShakerSort(array);
```
HeapSort
```javascript
algoWorld.sort.HeapSort(array);
```
Peakfinding1D
```javascript
algoWorld.find.Peakfinding1D(array);
// logs the peak with index
```
BinarySearch
```javascript
algoWorld.find.BinarySearch(key,array);
// logs if found with index
```
QuickSort
```javascript
algoWorld.sort.QuickSort(array);
```
SelectionSort
```javascript
algoWorld.sort.SelectionSort(array);
```