  We present a new particle-merging algorithm for the particle-in-cell method.
Based on the concept of the Voronoi diagram, the algorithm partitions the phase
space into smaller subsets, which consist of only particles that are in close
proximity in the phase space to each other. We show the performance of our
algorithm in the case of the two-stream instability and the magnetic shower.
