⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfsts.ps

📁 生成直角Steiner树的程序包
💻 PS
📖 第 1 页 / 共 2 页
字号:
%!PS-Adobe-3.0%%Creator: Steiner Tree Version 3.1%%Copyright: Copyright (c) 1998, 2001 by David M. Warme%%LanguageLevel: 1%%DocumentNeededResources: font Times-Roman%%DocumentSuppliedResources: procset SteinerTreeProcs 2.0 0%%EndComments%%BeginProlog%%BeginProcSet: SteinerTreeProcs 2.0 0/LabelTerminals	0		def	% set non-zero to label terminals/inch { 72 mul } def/PaperWidth	8.5 inch	def/PaperHeight	11 inch		def/BigBoxSize	7 inch		def/SmallBoxSize	2 inch		def/SmallBoxHeight	SmallBoxSize	def/SmallBoxWidth	SmallBoxSize	def/BoxHeight	BigBoxSize	def/BoxWidth	BigBoxSize	def/MinX		0		def/MaxX		1		def/MinY		0		def/MaxY		1		def/BoxMode	0		def	% (0 ==> big plot, 1 ==> small plots)/SmallBoxCount	0		def/TermRadius	1 32 div inch	def/LineWidth	currentlinewidth	def% Define the clipping region to be the inside edge of the box./ClipHeight	BigBoxSize LineWidth sub def/ClipWidth	ClipHeight def% Define the plotting region so that points plotted at the extremes will% exactly meet the edge of the clipping region.  (Reduce by the terminal% radius on each side.)/PlotHeight	ClipHeight TermRadius 2 mul sub def/PlotWidth	ClipWidth  TermRadius 2 mul sub	def/XlateX { MinX sub MaxX MinX sub div PlotWidth mul } def/XlateY { MinY sub MaxY MinY sub div PlotHeight mul } def/XlateXY { exch XlateX exch XlateY } def/Dup2 { dup 3 -1 roll dup 4 1 roll exch } def/Swap2 { 4 2 roll } def% define the two fonts we will use:%	- one for numbering the terminals%	- one for printing the plot's title/TermNumPointsize	8	def/TitlePointsize		15	def/TermNumFont	/Times-Roman findfont TermNumPointsize scalefontdef/UseTermNumFont { TermNumFont setfont } def/TitleFont	/Times-Roman findfont TitlePointsize scalefontdef/UseTitleFont { TitleFont setfont } def/DefineTerminals {	/NumTerms exch def	/TermX NumTerms array def	/TermY NumTerms array def	/TermIndex 0 def} def/DT {	TermY TermIndex 3 -1 roll put	TermX TermIndex 3 -1 roll put	/TermIndex TermIndex 1 add def} def/SetAxes {	% minx maxx miny maxy	/MaxY exch def	/MinY exch def	/MaxX exch def	/MinX exch def} def/PTString	12 string	def/Plot_Terminals {	LabelTerminals 0 eq {		% Display terminals, no labels		0 1 NumTerms 1 sub {			% i			dup				% i i			TermX exch get exch		% x i			TermY exch get			newpath			XlateXY			TermRadius 0 360 arc fill		} for	}	{	% Display terminals, with labels		0 1 NumTerms 1 sub {			% i			dup				% i i			PTString cvs exch dup		% str i i			TermX exch get exch		% str x i			TermY exch get			% str x y			newpath			XlateXY			Dup2			TermRadius 0 360 arc fill			moveto TermRadius 3 mul dup neg rmoveto			UseTermNumFont			show		} for	} ifelse} def% n T ==> Xn Yn, get coordinates of terminal n./T {	dup	TermX exch get exch	TermY exch get} def% Draw a line segment./S {	newpath	XlateXY	moveto	XlateXY	lineto	stroke} def% Draw a corner.  First point is incident to vertical segment.% Second point is incident to horizontal segment./C {	% x1 y1 x2 y2	newpath	% x1 y1 x2 y2 -> x1 y1 x1 y2 x2 y2	4 -1 roll dup 5 1 roll exch dup 4 -1 roll exch	XlateXY	moveto	XlateXY	lineto	XlateXY	lineto	stroke} def/BeginPlot {	FlushSmallPlot	gsave	PaperWidth BoxWidth sub 2 div	 PaperHeight BoxHeight sub 2 div	  translate	newpath	0 0 moveto	BoxWidth 0 lineto	BoxWidth BoxHeight lineto	0 BoxHeight lineto	closepath	stroke	gsave	% establish a clipping region at the inside edge of the box	LineWidth 2 div dup moveto	ClipWidth 0 rlineto	0 ClipHeight rlineto	ClipWidth neg 0 rlineto	closepath	clip	% establish the origin for the plotting region	LineWidth 2 div TermRadius add	 dup	  translate} def/EndPlot {	grestore	newpath	UseTitleFont	0 0 moveto		dup stringwidth pop BigBoxSize exch sub 2 div		TitlePointsize -2 mul	rmoveto	show	grestore	showpage} def/BeginSmallPlot {	gsave	.75 inch SmallBoxCount 3 mod SmallBoxWidth .5 inch add mul add	  .75 inch 3 SmallBoxCount 3 idiv sub SmallBoxHeight .5 inch add mul add	    translate	SmallBoxWidth BoxWidth div	 SmallBoxHeight BoxHeight div	  scale	newpath	0 0 moveto	BoxWidth 0 lineto	BoxWidth BoxHeight lineto	0 BoxHeight lineto	closepath	stroke	gsave	% establish a clipping region at the inside edge of the box	LineWidth 2 div dup moveto	ClipWidth 0 rlineto	0 ClipHeight rlineto	ClipWidth neg 0 rlineto	closepath	clip	% establish the origin for the plotting region	LineWidth 2 div TermRadius add	 dup	  translate} def/EndSmallPlot2 {	grestore	newpath	UseTitleFont	0 0 moveto		dup stringwidth pop BigBoxSize exch sub 2 div		TitlePointsize -2 mul	rmoveto	show	grestore	/SmallBoxCount SmallBoxCount 1 add def	SmallBoxCount 12 ge {		FlushSmallPlot	} if} def/FlushSmallPlot {	SmallBoxCount 0 gt {		showpage		/SmallBoxCount	0 def	} if} def/PT {	dup				% i i	TermX exch get exch		% x i	TermY exch get	newpath	XlateXY	TermRadius 0 360 arc fill} def%%EndProcSet%%EndProlog % Phase 1: 0.00 seconds%%BeginSetup0 10000 0 10000 SetAxes20 DefineTerminals	1857	2738	DT	2894	8773	DT	1463	5183	DT	6905	8268	DT	3221	2457	DT	3473	730	DT	2983	4045	DT	5486	5208	DT	815	6755	DT	1875	934	DT	606	7576	DT	6045	4078	DT	9323	8669	DT	7952	2547	DT	303	8201	DT	6131	4811	DT	7871	9452	DT	854	1630	DT	5468	655	DT	7539	7194	DT%%EndSetup%%Page: 1 1BeginSmallPlot	Plot_Terminals % fs0: 0 9 4	0 T	1875	2457	C	1875	2457	9 T	S	1875	2457	4 T	S  (FST 0,  Length = 3168)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs1: 0 9 6 4	0 T	1875	2457	C	1875	2457	9 T	S	1875	2457	2983	2457	S	2983	2457	6 T	S	2983	2457	4 T	S  (FST 1,  Length = 4756)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs2: 0 9 6 4 11 13	0 T	1875	2547	C	1875	2547	9 T	S	1875	2547	2983	2547	S	2983	2547	6 T	S	2983	2547	3221	2547	S	3221	2547	4 T	S	3221	2547	6045	2547	S	6045	2547	11 T	S	6045	2547	13 T	S  (FST 2,  Length = 11018)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs3: 0 6 4	0 T	2983	2738	S	2983	2738	6 T	S	2983	2738	4 T	C  (FST 3,  Length = 2952)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs4: 0 6 4 11 13	0 T	2983	2738	S	2983	2738	6 T	S	2983	2738	3221	2547	C	3221	2547	4 T	S	3221	2547	6045	2547	S	6045	2547	11 T	S	6045	2547	13 T	S  (FST 4,  Length = 9214)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs5: 0 4 11 13	0 T	3221	2547	C	3221	2547	4 T	S	3221	2547	6045	2547	S	6045	2547	11 T	S	6045	2547	13 T	S  (FST 5,  Length = 7907)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs6: 2 0 6	2 T	1857	4045	C	1857	4045	0 T	S	1857	4045	6 T	S  (FST 6,  Length = 3965)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs7: 2 6 11	2 T	2983	4078	C	2983	4078	6 T	S	2983	4078	11 T	S  (FST 7,  Length = 5720)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs8: 2 6 7	2 T	2983	5183	S	2983	5183	6 T	S	2983	5183	7 T	C  (FST 8,  Length = 5186)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs9: 2 6 7 11 15	2 T	2983	4811	C	2983	4811	6 T	S	2983	4811	5486	4811	S	5486	4811	7 T	S	5486	4811	6045	4811	S	6045	4811	11 T	S	6045	4811	15 T	S  (FST 9,  Length = 6936)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs10: 2 6 7 15	2 T	2983	4811	C	2983	4811	6 T	S	2983	4811	5486	4811	S	5486	4811	7 T	S	5486	4811	15 T	S  (FST 10,  Length = 6203)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs11: 3 19 16 12	3 T	7539	8268	S	7539	8268	19 T	S	7539	8268	7871	8669	C	7871	8669	16 T	S	7871	8669	12 T	S  (FST 11,  Length = 4676)EndSmallPlot2%%Page: 2 2BeginSmallPlot	Plot_Terminals % fs12: 3 19 16	3 T	7539	8268	S	7539	8268	19 T	S	7539	8268	16 T	C  (FST 12,  Length = 3224)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs13: 3 19 12	3 T	7539	8268	S	7539	8268	19 T	S	7539	8268	12 T	C  (FST 13,  Length = 3893)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs14: 3 16 12	3 T	7871	8669	C	7871	8669	16 T	S	7871	8669	12 T	S  (FST 14,  Length = 3602)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs15: 4 5 11 13	4 T	3473	2457	S	3473	2457	5 T	S	3473	2457	6045	2547	C	6045	2547	11 T	S	6045	2547	13 T	S  (FST 15,  Length = 8079)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs16: 4 11 13	4 T	6045	2547	C	6045	2547	11 T	S	6045	2547	13 T	S  (FST 16,  Length = 6352)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs17: 5 18 11 13	5 T	5468	730	S	5468	730	18 T	S	5468	730	6045	2547	C	6045	2547	11 T	S	6045	2547	13 T	S  (FST 17,  Length = 7902)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs18: 6 4 11	6 T	3221	4045	S	3221	4045	4 T	S	3221	4045	11 T	C  (FST 18,  Length = 4683)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs19: 6 4 11 13	6 T	3221	2547	C	3221	2547	4 T	S	3221	2547	6045	2547	S	6045	2547	11 T	S	6045	2547	13 T	S  (FST 19,  Length = 8088)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs20: 6 11 13	6 T	6045	4045	S	6045	4045	11 T	S	6045	4045	13 T	C  (FST 20,  Length = 6500)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs21: 7 11 15	7 T	6045	4811	C	6045	4811	11 T	S	6045	4811	15 T	S  (FST 21,  Length = 1775)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs22: 7 15 3 19	7 T	6131	5208	S	6131	5208	15 T	S	6131	5208	6905	7194	C	6905	7194	3 T	S	6905	7194	19 T	S  (FST 22,  Length = 5510)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs23: 7 15 19	7 T	6131	5208	S	6131	5208	15 T	S	6131	5208	19 T	C  (FST 23,  Length = 4436)EndSmallPlot2%%Page: 3 3BeginSmallPlot	Plot_Terminals % fs24: 8 2 1 7 3 19	8 T	1463	6755	S	1463	6755	2 T	S	1463	6755	2894	7194	C	2894	7194	1 T	S	2894	7194	5486	7194	S	5486	7194	7 T	S	5486	7194	6905	7194	S	6905	7194	3 T	S	6905	7194	19 T	S  (FST 24,  Length = 13374)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs25: 9 4 5	9 T	3221	934	S	3221	934	4 T	S	3221	934	5 T	C  (FST 25,  Length = 3325)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs26: 10 8 1 7 3 19	10 T	815	7194	C	815	7194	8 T	S	815	7194	2894	7194	S	2894	7194	1 T	S	2894	7194	5486	7194	S	5486	7194	7 T	S	5486	7194	6905	7194	S	6905	7194	3 T	S	6905	7194	19 T	S  (FST 26,  Length = 12393)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs27: 10 1 7 3 19	10 T	2894	7576	S	2894	7576	1 T	S	2894	7576	5486	7194	C	5486	7194	7 T	S	5486	7194	6905	7194	S	6905	7194	3 T	S	6905	7194	19 T	S  (FST 27,  Length = 11572)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs28: 11 15 13	11 T	6131	4078	S	6131	4078	15 T	S	6131	4078	13 T	C  (FST 28,  Length = 4171)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs29: 14 10 1	14 T	606	8201	S	606	8201	10 T	S	606	8201	1 T	C  (FST 29,  Length = 3788)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs30: 15 3 19	15 T	6905	7194	C	6905	7194	3 T	S	6905	7194	19 T	S  (FST 30,  Length = 4865)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs31: 15 19 13	15 T	7539	4811	S	7539	4811	19 T	S	7539	4811	13 T	C  (FST 31,  Length = 6468)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs32: 17 0 9	17 T	1857	1630	S	1857	1630	0 T	S	1857	1630	9 T	C  (FST 32,  Length = 2825)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs33: 18 11 13	18 T	6045	2547	C	6045	2547	11 T	S	6045	2547	13 T	S  (FST 33,  Length = 5907)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs34: 9 17 4 0	1857	1630	9 T	C	1857	1630	17 T	S	1857	1630	1857	2457	S	1857	2457	4 T	S	1857	2457	0 T	S  (FST 34,  Length = 4189)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs35: 11 15	11 T	15 T	C  (FST 35,  Length = 819)EndSmallPlot2%%Page: 4 4BeginSmallPlot	Plot_Terminals % fs36: 10 14	14 T	10 T	C  (FST 36,  Length = 928)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs37: 8 10	10 T	8 T	C  (FST 37,  Length = 1030)EndSmallPlot2BeginSmallPlot	Plot_Terminals % fs38: 7 15	7 T	15 T	C  (FST 38,  Length = 1042)EndSmallPlot2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -