Lin-Kernighan heuristic for the TSP and minimum weight perfect matching

源代码在线查看: probe.pl.in

软件大小: 1755 K
上传用户: RSY527
关键词: Lin-Kernighan heuristic matching minimum
下载地址: 免注册下载 普通下载 VIP

相关代码

				#! @PERL@				# @configure_input@				# probe.pl				# Extract probe and move depth from a LK output file.								open(IN, "zcat @ARGV |");  # Uncompress input files.				open(POUT ,">probe.gpl");				open(MOUT ,">move.gpl");				while() {					if( m/p (\d+) citydeep (\d+)/ ) {						print POUT "$1 $2\n";					} elsif( m/m (\d+) citydeep (\d+)/ ) {						print MOUT "$1 $2\n";					}				}				close(POUT);				close(MOUT);							

相关资源