Scott Hurring » Code » Python

Expert system · v0.1 beta · Nov 20, 2005
A very simple "expert system" i built for a class project.

Game theory arena · v0.1 alpha · Nov 19, 2004
A very simple "arena" i built so that bots can compete in game theory "prisoner's dilemma" type games.


Updated!
May 18, 2006
Genetic · v0.3 beta · May 18, 2006
This is some code to simulate a basic "holland-style" genetic algorithm, to illustrate some concepts talked about in a CS class i took. I updated it a little bit further as i was reading "The Blind Watchmaker" by Richard Dawkins to play with some of his word-based examples.

Simple list processor · v0.1 alpha · Sep 11, 2004
Simple list processor that does prefix math, but can be extended fairly easily to do more powerful stuff.
I wrote this to help me learn python better, and exercise some of it's more (IMO) interesting and powerful features.


Updated!
Apr 20, 2006
2D-matrix functions · v0.3 beta · Apr 20, 2006
A class for simple 2D-Matrix operations. Multiplication, addition, and inversion are supported. This was mainly written so that i could double-check my Linear Algebra homework easier. I might add features as the semester goes on. This is not meant to be complete, efficient or accurate, it's simply something i hacked up in a couple hours to reduce the tedium of double-checking my Linear Algebra homework.

Minimum Spanning Tree (Prim's Algo) · v0.1 alpha · Dec 09, 2004
Attempt to implement Prim's Minimum Spanning Tree algorithm in python as part of a homework assignment.

PHP Serialize implemented in Python · v0.4 beta · Jan 08, 2006
This is a python workalike of PHP's serialize() and unserialize() commands. It works with string, int, float, long, list, dict, tuple, bool and None types. This code aims to be a very lightweight data transport layer between PHP, perl and python using PHP's native serialization format.