1.0.7 • Published 7 years ago

algo-world v1.0.7

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

algo-world

This is an node package which enable you to use different algorithms which are inbuilt in it

NPM

Install

npm install algo-world

Usage

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

algoWorld.sort.InsertionSort(array);

MergeSort

algoWorld.sort.MergeSort(array);

ShakerSort

algoWorld.sort.ShakerSort(array);

HeapSort

algoWorld.sort.HeapSort(array);

Peakfinding1D

algoWorld.find.Peakfinding1D(array);
// logs the peak with index

BinarySearch

algoWorld.find.BinarySearch(key,array);
// logs if found with index

QuickSort

algoWorld.sort.QuickSort(array);
1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago