In recent years, a new framework for systems to be handled appeared based on decentralized cooperative control using simple, identical, cooperating subsystems named agents. Such systems are named multi-agent systems. In this paper some linear algorithms extending and generalizing known results for formation control are proposed. As a first step the algorithms for a group of agents allocation on a segment are considered, stability criteria and some convergence analysis results are presented.