title: Distribute objects within a circle
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9537333/how-to-pack-squares-into-circles">How to pack squares into circles?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a problem where I need to fit a bunch of different sized rectangles within a circle. All the rectangles must fit in the circle without overlapping each other and without overflowing the circle.</p>
  
  <p>Assuming the rectangles can fit inside the circle how would one develop an algorithm to distribute them inside the circle? </p>
  
  <p>All I can think of is to randomly distribute the rectangles over and over and test whether the conditions are met (brute-force).</p>