I have a set of 100 vectors of length 20. The vectors contain real numbers (positive and…
- User
I have a set of 100 vectors of length 20. The vectors contain real numbers (positive and negative).
I would like to find a subset of vectors whose sum is as close as possible to a target vector T (also of length 20). The closeness measure is the Euclidian distance.
I don't need to find the optimal solution, only an approximate one, but find it in minimal amount of computation.
How is this problem usually solved efficiently? Does this problem have known solutions that take advantage of the properties of vector sums and Euclidian distance?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.