A recording medium recorded with a network topology design program designing a network topology connecting a plurality of points by communication lines by adopting a genetic algorithm so that a predetermined traffic volume can be transmitted among the plurality of points, realizing:
- a chromosome creation function for randomly creating a predetermined number of initial generation chromosomes representing the network topology in a matrix;
- a communication path determination function for determining a communication path between the respective points by applying the solution of a shortest path problem to each network topology represented by the chromosome;
- a line capacity determination function for, based on the communication path determined by said communication path determination function and the predetermined traffic volume, determining the capacity of each communication line connecting the points;
- a fitness calculation function for, based on the capacity of each communication line determined by said line capacity determination function, computing fitness that is inversely proportional to communication cost;
- a chromosome evolution function for, based on the fitness computed by said fitness computing function, evolving sequentially the predetermined number of chromosomes to the next generation chromosomes;
- a generation judgment function for judging whether or not the generation of the chromosome evolved by said chromosome evolution function has reached a predetermined generation;
- and
- a control function for, when it is judged by said generation judgment function that the generation has not yet reached the predetermined generation, repeating the processing of said communication path determination function and the subsequent functions, and when judged that the generation has reached the predetermined generation, for outputting the chromosome with the highest fitness among the predetermined number of chromosomes.