Appropriate container for the fast insertion and lookup of n-dimensional real vectors (initial benchmarking provided)
问题 1. Description of the problem I am trying to pick the most appropriate (efficient) container to store unique n -dimensional vectors composed of floating numbers. Solving whole problem, the most important steps (related to the question) involve: Get a new vector from the external program (during the same run, all vectors have the same dimensionality). Check (ASAP) if a new point is already in this container: if exists - skip a lot of expensive steps and do the other steps; if doesn't - insert