New answers tagged simulation
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 ...
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 ...
Top 50 recent answers are included
Related Tags
simulation × 364python × 144
performance × 68
c++ × 63
java × 60
random × 52
beginner × 50
python-3.x × 43
physics × 43
object-oriented × 33
numpy × 27
statistics × 22
r × 16
game × 15
c# × 14
dice × 14
c × 13
javascript × 12
algorithm × 12
matplotlib × 11
programming-challenge × 10
interview-questions × 8
numerical-methods × 8
matlab × 8
c++11 × 7