ebraminio / linbin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from schani/linbin
Linear vs binary search benchmark
This project forked from schani/linbin
Linear vs binary search benchmark
Exploring Linear vs Binary Search ================================= First, read this: http://schani.wordpress.com/2010/04/30/linear-vs-binary-search/ To run the benchmarks, do make ./bench.py >out This will take a few hours and should run on an unloaded machine. The results will be in the file "out". You can then visualize the results with ./genplot.py <out Note that by default the X-axis is logarithmic and the number shown is the binary logarithm of what the actual array size is. Usually you don't want the results for all the algorithms in one plot, so you can select which ones you like via regular expressions: ./genplot.py 'binary.*' <out This will only plot the results for the binary searches. genplot.py knows lots of options and understands "--help". To do just a single benchmarking run on one algorithm, use "searchtest". It has two modes: test and benchmark. In test mode, a search algorithm is tested for correctness: ./searchtest test <ALGORITHM> <MAX-N> This will test the given algorithm on array sizes up to MAX-N. To time an algorithm, use time ./searchtest <NUM-SEARCHES> <ALGORITHM> <N> This will run the given number of random searches with the given algorithm on an array of size N. To get a list of all the algorithms, do ./searchtest --list
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.