1: On the Sum-of-Squares Algorithm for Bin Packing 2: Compact Floor-Planning via Orderly Spanning Trees