import unittest

def longest_repeating_subsequence(seq):
...

Python Longest Repeating Subsequence

by Ben Atkin, September 29, 2011 20:39, 1 refactoring, tagged with lists, algorithm, sequence

Can you make it faster whil...

70b0265140eaff6e312eb3efcff3c195 Talk
#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...

73465ace35a83efec10235c119800304 Talk
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...

9e9bb40f93094055bd09193eb3bccbb8 Talk
module Main where
import List
import Text.Regex.Posix
...

Haskell Graham scan

by jarkko, October 29, 2008 19:52, 3 refactorings, tagged with algorithm, haskell, gtk, cairo

My first experiment with Ha...

630067ad4c10410798d1550152f20d41 Talk
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...

535215c41c0949117577517b4506202c Talk