#include <fstream> using std::ofstream; #include <time.h> ...
C++ Game of Life
by vodkamilkshake,
January 22, 2010 08:29,
3 refactorings, tagged with game, algorithm, C++, cpp, gameoflife, conway
This is an implementation o...
import random INFINITE=1000000000 ...
Python Dijkstra to find two points...
by Mizipzor,
January 25, 2009 15:43,
1 refactoring, tagged with math, algorithm, path, dijkstra, pathfinding
Discussed on: http://stacko...
module Main where import List import Text.Regex.Posix ...
Haskell Graham scan
My first experiment with Ha...
module DiscreteDistribution # pick_random is useful for spliting up a collection by its specified discrete distribution ...
Ruby Randomly pick an item base ...
by David Dai,
June 15, 2008 06:02,
No refactoring, tagged with random, ruby, algorithm, discrete, discrete distribution, load balance, multivariate, ab-test
This method is useful to lo...
Can you make it faster whil...