An Optimal Algorithm for Spiral Floorplan Designs