Generalization of Machine Learning for Problem Reduction: A Case Study on Travelling Salesman Problems