What is the optimal algorithm (or a fast one) to compute the volume of a large collection of spheres placed randomly in a large box? (No gravity, spheres can intersect, radius is small compared to box size)
I have around 2000 spheres. Later I want to generalize to tetrahedra and other shapes.
An error of upto 5% is fine.