Please give in your ideas and suggestions for best algorithm on the following problems :
In a kiosk (a stand, sort of shop), they decided to make a discount
if you buy two products, the cheaper is for free
we have 2n products with prices p1, p2, ..., p2n
order products in pair that the total cost amount is minimized