The shortest distance between a problem