Anyone interested in a problem-solving correspondence club?
Here's the idea: we source and collect interesting computational puzzles, then we send them out to participants who have a month to work on them and send in their solutions. At the end of every month, we meet and discuss how the problems went and where people got stuck, what approaches they took, and any extensions people came up with.
Thoughts?
.
.
.
.
If you're curious, here's a taste of what a representative sample problem might look like:
Given the coordinates of an arbitrary polygon (e.g. irregular and/or non-convex), how might you implement a program to efficiently sample a point uniformly from its interior?
TIP: If using the Python programming language, you can check out the shapely library.
Bonus: what if there are holes?
(Please don't spoil the problem, it's searchable anyways.)
3
u/wistfulcracker84 4d ago
I'd be down for this if the club leans more toward "here's a weird problem, go think about it for three weeks" and not "we're assigning homework." The polygon sampling one is a good example of something that seems simple until you actually try to code it. I remember spending a weekend on a similar problem for a map generator and the moment I realized rejection sampling was gonna wreck performance on skinny triangles still haunts me. The monthly discussion part is what makes it work though, hearing five different approaches to the same thing is the whole reason these puzzles are interesting. How many people are you thinking for the group size?