Skip to content

A series of algorithms for sorting and searching arrays

Notifications You must be signed in to change notification settings

chrisbrine/algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithms

A TypeScript based NodeJS project to have libraries for different sorting and search algorithms that are easily modifiable for how it compares different variable types. Its not yet done as an NPM library but may modify in the future. Currently can just copy and paste into various projects as needed.

Available Sorting Functions

  • Bubble Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort
  • Selection Sort
  • Shell Sort

Available Search Functions

  • Linear Sort
  • Merge Sort (Primarily works in a pre sorted array)

Available Scripts

In the project directory, you can run:

npm run test

Runs a series of tests to make sure the sorting works.

npm run build

Builds the typescript into a javascript library in the lib folder.