title: Algorithm needed for distributing rectangles evenly within another rectangle
body: <p>I am looking for an algorithm that can help distribute different sized rectangles within a larger rectangle while minimizing overlapping.</p>
  
  <p>I have looked at bin packing algorithms, but they seem to minimize the amount of space between rectangles (in my case the all of the items being packed will be squares).</p>
  
  <p>I guess I want to maximize the distance between all squares and the border of the outer rectangle.</p>
  
  <p>Here is an example of what I am trying to do:</p>
  
  <p><img src="https://i.stack.imgur.com/p8Tbb.png" alt="Example of what I am saying"></p>