Next time you get the urge to redecorate, hire an algorithm. A new program developed by computer scientists can take a jumble of furniture and arrange it into a variety of realistic configurations using just a few simple rules, like “the TV must be visible from the couch,” “the lamp should be near the desk,” and (important, but oft-overlooked) “doors must be able to open.” You can then choose your favorite arrangement without having to heave the couch across the room more than once.