Index ¦ Archives  ¦ Atom  ¦ RSS > Tag: math ¦ RSS

Random weighted choice

Tue 30 August 2011

Many times I need to choose randomly from a list of 'neighbors' according to some weight assigned to them, and I'd like to share my technique. My language of choice is Python, but this technique should work in any language that has some sort of list and a random number …

Continue reading →

Matching people based on their comments

Mon 24 January 2011

I'm on the board of a student group on campus that has a 'buddy system' that's been going for a few years now. Every year, the board gets together to match up interested students on campus in a mentor-mentee setup; students designate whether they want to me a mentor or …

Continue reading →

© Fahrzin Hemmati. Built using Pelican. Theme by Giulio Fidente on github.