&quot;A fire upon the deep&quot; by Vernor Vinge is an interesting exploration of this. In the book different (and more desirable) physical laws take effect in places of low average matter density, so intelligent civilizations migrate out of their galaxies into the sparsely populated galactic rim.