title: Cutting rectangular pieces of a rectangular paper and minimizing the wastage.
body: <p>A rectangular piece of paper is given of W*H(widht * height). One is supposed to cut  rectangular pieces out of it. The list (having 'k' elements) of size of the pieces is given. The size of the pieces is given by w*h. All the numbers are integers. </p>
  
  <p>The cut must go from one end to the other. </p>
  
  <p>There could be any number of pieces  of the listed sizes(including no piece). </p>
  
  <p>The aim is to use as much paper as possible, i.e minimize wastage. </p>
  
  <p>Can anyone suggest me how to approach this problem.  </p>