Some methods for finding space that might help you are Hill-Climbing, Neural Network Training, Genetic Algorithm, and Particle Swarm.
You also need to determine the distance metric from the metric space. You did it? (& out of curiosity what it is if you did it)
source
share