3 votes

Spatial radius search in Boid simulation

Nice problem! I gotta tell ya, QuadTrees is definitely the appropriate datastructure. And it's just not that hard. Let coord be the bit interleaving of ...
J_H's user avatar
  • 16.7k
3 votes

Spatial radius search in Boid simulation

The slowness comes from drawing Your query() function is actually quite efficient. The problem comes from drawing the boids. If you remove the calls to ...
G. Sliepen's user avatar
  • 50.4k
2 votes

Optimizing __getitem__ for a bioinformatics script in Python

new to the area and I've been learning while developing Great, welcome! Software is almost as interesting as biology. And it's much less messy. measurements much longer for larger files “When you ...
J_H's user avatar
  • 16.7k
2 votes

Pentomino solver in Python

Kudos on tackling such an interesting problem! design of Public API ...
J_H's user avatar
  • 16.7k

Only top scored, non community-wiki answers of a minimum length are eligible