doc/images/connected_components.eps
author Peter Kovacs <kpeter@inf.elte.hu>
Tue, 15 Mar 2011 19:32:21 +0100
changeset 936 ddd3c0d3d9bf
parent 586 7c12061bd271
child 1045 4e8787627db3
permissions -rw-r--r--
Implement the scaling Price Refinement heuristic in CostScaling (#417)
instead of Early Termination.

These two heuristics are similar, but the newer one is faster
and not only makes it possible to skip some epsilon phases, but
it can improve the performance of the other phases, as well.
kpeter@586
     1
%!PS-Adobe-2.0 EPSF-2.0
kpeter@586
     2
%%Creator: LEMON, graphToEps()
kpeter@586
     3
%%CreationDate: Fri Nov  4 13:47:12 2005
alpar@587
     4
%%BoundingBox: 0 0 842 596
kpeter@586
     5
%%EndComments
kpeter@586
     6
/lb { setlinewidth setrgbcolor newpath moveto
kpeter@586
     7
      4 2 roll 1 index 1 index curveto stroke } bind def
kpeter@586
     8
/l { setlinewidth setrgbcolor newpath moveto lineto stroke } bind def
kpeter@586
     9
/c { newpath dup 3 index add 2 index moveto 0 360 arc closepath } bind def
kpeter@586
    10
/sq { newpath 2 index 1 index add 2 index 2 index add moveto
kpeter@586
    11
      2 index 1 index sub 2 index 2 index add lineto
kpeter@586
    12
      2 index 1 index sub 2 index 2 index sub lineto
kpeter@586
    13
      2 index 1 index add 2 index 2 index sub lineto
kpeter@586
    14
      closepath pop pop pop} bind def
kpeter@586
    15
/di { newpath 2 index 1 index add 2 index moveto
kpeter@586
    16
      2 index             2 index 2 index add lineto
kpeter@586
    17
      2 index 1 index sub 2 index             lineto
kpeter@586
    18
      2 index             2 index 2 index sub lineto
kpeter@586
    19
      closepath pop pop pop} bind def
kpeter@586
    20
/nc { 0 0 0 setrgbcolor 5 index 5 index 5 index c fill
kpeter@586
    21
     setrgbcolor 1.1 div c fill
kpeter@586
    22
   } bind def
kpeter@586
    23
/nsq { 0 0 0 setrgbcolor 5 index 5 index 5 index sq fill
kpeter@586
    24
     setrgbcolor 1.1 div sq fill
kpeter@586
    25
   } bind def
kpeter@586
    26
/ndi { 0 0 0 setrgbcolor 5 index 5 index 5 index di fill
kpeter@586
    27
     setrgbcolor 1.1 div di fill
kpeter@586
    28
   } bind def
kpeter@586
    29
/arrl 1 def
kpeter@586
    30
/arrw 0.3 def
kpeter@586
    31
/lrl { 2 index mul exch 2 index mul exch rlineto pop} bind def
kpeter@586
    32
/arr { setrgbcolor /y1 exch def /x1 exch def /dy exch def /dx exch def
kpeter@586
    33
       /w exch def /len exch def
kpeter@586
    34
       newpath x1 dy w 2 div mul add y1 dx w 2 div mul sub moveto
kpeter@586
    35
       len w sub arrl sub dx dy lrl
kpeter@586
    36
       arrw dy dx neg lrl
kpeter@586
    37
       dx arrl w add mul dy w 2 div arrw add mul sub
kpeter@586
    38
       dy arrl w add mul dx w 2 div arrw add mul add rlineto
kpeter@586
    39
       dx arrl w add mul neg dy w 2 div arrw add mul sub
kpeter@586
    40
       dy arrl w add mul neg dx w 2 div arrw add mul add rlineto
kpeter@586
    41
       arrw dy dx neg lrl
kpeter@586
    42
       len w sub arrl sub neg dx dy lrl
kpeter@586
    43
       closepath fill } bind def
kpeter@586
    44
/cshow { 2 index 2 index moveto dup stringwidth pop
kpeter@586
    45
         neg 2 div fosi .35 mul neg rmoveto show pop pop} def
kpeter@586
    46
kpeter@586
    47
gsave
alpar@587
    48
90 rotate
alpar@587
    49
0 -842 translate
kpeter@586
    50
71.0944 15 translate
kpeter@586
    51
0.434694 dup scale
kpeter@586
    52
90 rotate
kpeter@586
    53
860.856 -588.349 translate
kpeter@586
    54
%Edges:
kpeter@586
    55
gsave
kpeter@586
    56
574.035 177.301 622.149 225.748 670.264 274.195 0 0 0 2 lb
kpeter@586
    57
694.579 115.483 682.421 194.839 670.264 274.195 0 0 0 2 lb
kpeter@586
    58
280.402 10.3938 246.402 -6.60595 212.403 -23.6057 0 0 0 2 lb
kpeter@586
    59
280.402 10.3938 283.493 -18.9695 286.584 -48.3327 0 0 0 2 lb
kpeter@586
    60
212.403 -23.6057 249.493 -35.9692 286.584 -48.3327 0 0 0 2 lb
kpeter@586
    61
286.584 -48.3327 326.765 -79.2414 366.947 -110.15 0 0 0 2 lb
kpeter@586
    62
286.584 -48.3327 278.857 -111.695 271.13 -175.058 0 0 0 2 lb
kpeter@586
    63
438.037 -88.514 417.946 -142.604 397.855 -196.694 0 0 0 2 lb
kpeter@586
    64
438.037 -88.514 402.492 -99.332 366.947 -110.15 0 0 0 2 lb
kpeter@586
    65
397.855 -196.694 382.401 -153.422 366.947 -110.15 0 0 0 2 lb
kpeter@586
    66
366.947 -110.15 319.038 -142.604 271.13 -175.058 0 0 0 2 lb
kpeter@586
    67
271.13 -175.058 274.221 -213.694 277.311 -252.33 0 0 0 2 lb
kpeter@586
    68
271.13 -175.058 238.675 -190.512 206.221 -205.967 0 0 0 2 lb
kpeter@586
    69
277.311 -252.33 241.766 -229.149 206.221 -205.967 0 0 0 2 lb
kpeter@586
    70
-840.856 -246.718 -804.351 -66.7145 -767.847 113.289 0 0 0 2 lb
kpeter@586
    71
-579.033 445.603 -673.44 279.446 -767.847 113.289 0 0 0 2 lb
kpeter@586
    72
-579.033 445.603 -524.906 302.104 -470.779 158.605 0 0 0 2 lb
kpeter@586
    73
-767.847 113.289 -619.313 135.947 -470.779 158.605 0 0 0 2 lb
kpeter@586
    74
906.312 201.403 946.592 42.798 986.873 -115.807 0 0 0 2 lb
kpeter@586
    75
906.312 201.403 834.562 91.8901 762.812 -17.6227 0 0 0 2 lb
kpeter@586
    76
986.873 -115.807 874.842 -66.7148 762.812 -17.6227 0 0 0 2 lb
kpeter@586
    77
-470.779 158.605 -390.218 50.3508 -309.657 -57.9033 0 0 0 2 lb
kpeter@586
    78
422.945 521.129 208.955 541.269 -5.03507 561.41 0 0 0 2 lb
kpeter@586
    79
422.945 521.129 376.371 417.911 329.797 314.692 0 0 0 2 lb
kpeter@586
    80
422.945 521.129 474.554 276.928 526.164 32.7279 0 0 0 2 lb
kpeter@586
    81
-5.03507 561.41 -36.5042 440.568 -67.9734 319.727 0 0 0 2 lb
kpeter@586
    82
329.797 314.692 130.912 317.209 -67.9734 319.727 0 0 0 2 lb
kpeter@586
    83
-67.9734 319.727 229.095 176.227 526.164 32.7279 0 0 0 2 lb
kpeter@586
    84
762.812 -17.6227 644.488 7.5526 526.164 32.7279 0 0 0 2 lb
kpeter@586
    85
762.812 -17.6227 746.448 -162.381 730.084 -307.139 0 0 0 2 lb
kpeter@586
    86
526.164 32.7279 470.779 -128.394 415.393 -289.516 0 0 0 2 lb
kpeter@586
    87
730.084 -307.139 572.738 -298.327 415.393 -289.516 0 0 0 2 lb
kpeter@586
    88
415.393 -289.516 173.71 -318.468 -67.9734 -347.42 0 0 0 2 lb
kpeter@586
    89
-67.9734 -347.42 -188.815 -202.662 -309.657 -57.9033 0 0 0 2 lb
kpeter@586
    90
-67.9734 -347.42 -195.758 -390.692 -323.543 -433.964 0 0 0 2 lb
kpeter@586
    91
-309.657 -57.9033 -424.775 -160.272 -539.894 -262.64 0 0 0 2 lb
kpeter@586
    92
-323.543 -433.964 -431.719 -348.302 -539.894 -262.64 0 0 0 2 lb
kpeter@586
    93
-26.6953 -19.9585 44.8558 -96.8093 116.407 -173.66 0 0 0 2 lb
kpeter@586
    94
-26.6953 -19.9585 87.2563 9.19185 201.208 38.3422 0 0 0 2 lb
kpeter@586
    95
-26.6953 -19.9585 -144.622 43.6422 -262.548 107.243 0 0 0 2 lb
kpeter@586
    96
-26.6953 -19.9585 -20.0703 56.8923 -13.4452 133.743 0 0 0 2 lb
kpeter@586
    97
116.407 -173.66 158.808 -67.6589 201.208 38.3422 0 0 0 2 lb
kpeter@586
    98
-262.548 107.243 -137.997 120.493 -13.4452 133.743 0 0 0 2 lb
kpeter@586
    99
-262.548 107.243 -221.472 176.144 -180.397 245.045 0 0 0 2 lb
kpeter@586
   100
-13.4452 133.743 -96.9211 189.394 -180.397 245.045 0 0 0 2 lb
kpeter@586
   101
-180.397 245.045 -142.256 345.099 -132.697 451.748 0 0 0 2 lb
kpeter@586
   102
-180.397 245.045 -170.838 351.694 -132.697 451.748 0 0 0 2 lb
kpeter@586
   103
-416.25 345.746 -274.474 398.747 -132.697 451.748 0 0 0 2 lb
kpeter@586
   104
-416.25 345.746 -393.725 457.048 -371.2 568.349 0 0 0 2 lb
kpeter@586
   105
-132.697 451.748 -251.948 510.048 -371.2 568.349 0 0 0 2 lb
kpeter@586
   106
670.264 274.195 629.188 409.347 588.113 544.499 0 0 0 2 lb
kpeter@586
   107
670.264 274.195 797.466 341.771 924.667 409.347 0 0 0 2 lb
kpeter@586
   108
588.113 544.499 756.39 476.923 924.667 409.347 0 0 0 2 lb
kpeter@586
   109
-689.204 -237.261 -614.799 -102.648 -567.302 43.6423 0 0 0 2 lb
kpeter@586
   110
-689.204 -237.261 -641.707 -90.9706 -567.302 43.6423 0 0 0 2 lb
kpeter@586
   111
grestore
kpeter@586
   112
%Nodes:
kpeter@586
   113
gsave
kpeter@586
   114
-567.302 43.6423 20 0 0 0 nc
kpeter@586
   115
-689.204 -237.261 20 0 0 0 nc
kpeter@586
   116
924.667 409.347 20 1 0 0 nc
kpeter@586
   117
588.113 544.499 20 1 0 0 nc
kpeter@586
   118
670.264 274.195 20 1 0 0 nc
kpeter@586
   119
-371.2 568.349 20 0 1 0 nc
kpeter@586
   120
-132.697 451.748 20 0 1 0 nc
kpeter@586
   121
-416.25 345.746 20 0 1 0 nc
kpeter@586
   122
-180.397 245.045 20 0 1 0 nc
kpeter@586
   123
-13.4452 133.743 20 0 1 0 nc
kpeter@586
   124
-262.548 107.243 20 0 1 0 nc
kpeter@586
   125
201.208 38.3422 20 0 1 0 nc
kpeter@586
   126
116.407 -173.66 20 0 1 0 nc
kpeter@586
   127
-26.6953 -19.9585 20 0 1 0 nc
kpeter@586
   128
-539.894 -262.64 20 0 0 1 nc
kpeter@586
   129
-323.543 -433.964 20 0 0 1 nc
kpeter@586
   130
-309.657 -57.9033 20 0 0 1 nc
kpeter@586
   131
-67.9734 -347.42 20 0 0 1 nc
kpeter@586
   132
415.393 -289.516 20 0 0 1 nc
kpeter@586
   133
730.084 -307.139 20 0 0 1 nc
kpeter@586
   134
526.164 32.7279 20 0 0 1 nc
kpeter@586
   135
762.812 -17.6227 20 0 0 1 nc
kpeter@586
   136
-67.9734 319.727 20 0 0 1 nc
kpeter@586
   137
329.797 314.692 20 0 0 1 nc
kpeter@586
   138
-5.03507 561.41 20 0 0 1 nc
kpeter@586
   139
422.945 521.129 20 0 0 1 nc
kpeter@586
   140
-470.779 158.605 20 0 0 1 nc
kpeter@586
   141
986.873 -115.807 20 0 0 1 nc
kpeter@586
   142
906.312 201.403 20 0 0 1 nc
kpeter@586
   143
-767.847 113.289 20 0 0 1 nc
kpeter@586
   144
-579.033 445.603 20 0 0 1 nc
kpeter@586
   145
-840.856 -246.718 20 0 0 1 nc
kpeter@586
   146
206.221 -205.967 20 1 1 0 nc
kpeter@586
   147
277.311 -252.33 20 1 1 0 nc
kpeter@586
   148
271.13 -175.058 20 1 1 0 nc
kpeter@586
   149
366.947 -110.15 20 1 1 0 nc
kpeter@586
   150
397.855 -196.694 20 1 1 0 nc
kpeter@586
   151
438.037 -88.514 20 1 1 0 nc
kpeter@586
   152
286.584 -48.3327 20 1 1 0 nc
kpeter@586
   153
212.403 -23.6057 20 1 1 0 nc
kpeter@586
   154
280.402 10.3938 20 1 1 0 nc
kpeter@586
   155
694.579 115.483 20 1 0 0 nc
kpeter@586
   156
574.035 177.301 20 1 0 0 nc
kpeter@586
   157
grestore
kpeter@586
   158
grestore
kpeter@586
   159
showpage