The answer to both questions is NO.
These programs and algorithms already exist. Brian Olson is a software engineer in Massachusetts who wrote a program to draw "optimally compact" equal-population congressional districts in each state, based on 2010 census data. Olson's algorithm draws districts that respect the boundaries of census blocks, which are the smallest geographic units used by the Census Bureau.
And as you can see, the states look A LOT better. Just look at Florida!