A Discrete and Continuous Study of the Max-Chain-Formation Problem