Games and physics simulations need to detect which objects are touching or overlapping. With nnn objects, checking every pair is O(n2)O(n^2)O(n2) comparisons, which gets expensive fast. A hundred objects means roughly 5,000 pair checks. A thousand means nearly 500,000.
Google AdSense tracking
,更多细节参见快连下载安装
Create articles of up to 10k words
Фото: Svetlana Vozmilova / Globallookpress.com