An Optimal Model and Algorithm of Distributed Information System