Evolutionary optimized ad hoc connectivity