Linear-time approximation algorithms for minimum subset sum and subset sum