New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

algorithmic

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

algorithmic

Algorithms & data structures

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Algorithmic

This is a library of tested algorithms & data structures, written in CoffeeScript for educational purposes.

See src/ folder for more detail.

Benchmarks

For fun, I did some sort benchmarks to compare sorting algorithms.

benchSortsBig.coffee (10,000 integers)
bubble sort elapsed: 493ms
bucket sort elapsed: 2ms
insertion sort elapsed: 140ms
mergesort elapsed: 16ms
quicksort elapsed: 11ms
in-place quicksort elapsed: 1ms
selection sort elapsed: 233ms
v8 sort elapsed: 3ms

benchSortsBig.coffee (10 million integers)
bucket sort (10,000 buckets) elapsed: 7419ms
bucket sort (100,000 buckets) elapsed: 2939ms
bucket sort (1,000,000 buckets) elapsed: 3480ms
in-place quicksort elapsed: 1834ms
v8 sort elapsed: 2922ms

Enjoy!

FAQs

Package last updated on 19 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc