# High Performance Algorithms for Counting Collisions and Pairwise   Interactions

**Authors:** Matheus Henrique Junqueira Saldanha, Paulo S\'ergio Lopes de Souza

arXiv: 1901.11204 · 2019-09-04

## TL;DR

This paper introduces two new algorithms for efficiently counting collisions and interactions, significantly improving performance in computer graphics and scientific simulations, especially leveraging GPU parallelism.

## Contribution

It presents a linear-complexity sequential algorithm with high memory use and a GPU-optimized parallel algorithm, both outperforming existing methods.

## Key findings

- Sequential algorithm achieves 21.7x speedup on small problems.
- Parallel algorithm achieves 1.12x speedup on large problems.
- Both algorithms improve efficiency in collision detection tasks.

## Abstract

The problem of counting collisions or interactions is common in areas as computer graphics and scientific simulations. Since it is a major bottleneck in applications of these areas, a lot of research has been carried out on such subject, mainly focused on techniques that allow calculations to be performed within pruned sets of objects. This paper focuses on how interaction calculation (such as collisions) within these sets can be done more efficiently than existing approaches. Two algorithms are proposed: a sequential algorithm that has linear complexity at the cost of high memory usage; and a parallel algorithm, mathematically proved to be correct, that manages to use GPU resources more efficiently than existing approaches. The proposed and existing algorithms were implemented, and experiments show a speedup of 21.7 for the sequential algorithm (on small problem size), and 1.12 for the parallel proposal (large problem size). By improving interaction calculation, this work contributes to research areas that promote interconnection in the modern world, such as computer graphics and robotics.

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/1901.11204/full.md

---
Source: https://tomesphere.com/paper/1901.11204