You are on page 1of 2

 

  
      
   ! " # $% &'' '(" )*'"! +,-  " ". "  ) *
  /'%0"0    ! " 0 " ! '"! " " )"%'  " "),
1)! /" 2 3% )" )"*'" 1) "") ))" 0  0"! )"
" 1%/'$ 1 $%) ) )! 2 4)  )/%') )*'"! 567 89: ; :9< =>>:?
>6 @6AA8B698>: C=>D 6>D :9 < :< B:9E 6F >D : @A8EE  '(" " )*'"! G &"(") #
$% )"  ")! "0  /''*)" &" ! '"! " " ) )! 2 3%
)" ''  ")! "0  ""H % '% ) /0"  " &"* 2 I" /''*,
) %'0 *" 0" % " 0/% )" & J"*KI G &"(") # 
! H"  )*'"! ")" #  ! H    '" ") '(" " ")"
)*'"! 0 "   /! '""0 '% & J"* KI 2 I %'0 *"
 ".")/"  " &'" /' &)H  "")2  1/ #  ".")/" &'' '
*" %"0      L/' )/M )0"2
4)   ! " # " N' ") &''  / 1  )")  "."),
! " *% &'' %! ! )O"  $%) & &)0 " '%  " )*'"! 
&"''  " 0"  1 $%) ! '"! " 2 K"P%"'$# " /!  1
$%) ") &'' *" '"1 %  $%  '  " )"%' ")  ''  /")"
&)H 1 Q  ' )" 2
KRS T +,- U  )0")  )1)! " %)/" ) 1 ".   ) "
x[1..m]
) # &" / ")1)! ()% )1)!  ")2 V%) ' #
(" y[1..n]
0 #  )0%/"  ")" 1 )1)!   / "  2 J"
%" x ))$ y %! "0  *" ') " "%   '0 '' " /)/") x y
 &''
zW
""0  '0 " ")! "0" )"%'2 ''$#  "! $# 0  ")!  #
W
&" %'0 (" 1) 2 zJ" !  /%))" 0/"
z[j] = y[j] j = 1, 2, . . . , n
 0  # 0 " ") )" ''&"0  '") 0 "" 0/"2i
x j z z
''$# 2 J" )" )"P%)"0  ".! " "(")$ /)/")  0%) "
i=j=1 x
)1)!  # &/ ! "   " "0 1 " "P%"/" 1 )1)! 
")# &" !% (" 2 I")" )" . )1)!  ")U
i=m+1
YZ  /)/") 1)!  *$ " 0 " /)"! "
• X x z
* 0 2 I ") ".!  z[j]
2 ← x[i]
i j x[i]
Y ]  /)/") 1)! *$ ") /)/") *$ "
• [ \ "\ /)"! " *x 0 2 I ")c ".! " z[j]
0 2 ←c
i j x[i]
  /)/") 1)! *$ /)"! " *% '"( '" 2 I
• ^\ \ \
") ".! " 2 x i j
x[i]
  " /)/")  *$ " 0 " /)"! "
_ \'"( '" 2 I
• *% c ")
z ".!z[j]
"←c /)/")  2 j
i x
 2" 2# "./ " " ". & /)/") *$ /$ "! 1)!
• `a \  " " )0")G &" 0  *$ "
 *% 0
x z z[j] ← x[i + 1]
0 " " 0 2 I ")
z[j
".!+ "
1] ← x[i]0 2 i ← i+2 j ← j+2
x[i] x[i + 1]


I*'" U T) I)1)! 
V")
x z
=b=>=8A E>9=bcE ' )! d
/$ ' )! d
/$ ' )! 'd
)"'/" *$ LM ' )! ' d
0"'"" ' )! ' d
/$ ' )! ')d
") L%M ' )! ')% d
") LM ' )! ')%d
") LM ' )! ')%d
&00'" ' )! ')%d
") L/M ' )! ')%/d
H'' ' )! d ')%/d

 " )"! 0") 1 *$ " 2 I ") ".! "


• e
'' /)/")  x ("  $"i ← m+1
*"" ".! "0 2 1  ") 
x *" " N' ") 2
")1)! "0 #  !%
f   ".! '" # " &$  )1)! " %)/" ) L' )!M  " ) "
) L')%/M   %" " "P%"/" 1 ") ("  I*'" # &")" "
%0")'"0 /)/") )" 0 1") " ") 2 g"  ")" )"
x[i] z[j]
"(")' ") "P%"/" 1 )1)!  ")  )1)! L' )!M
 L')%/ 2M
Q / 1 " )1)!  ")   /"0 / 2 I" / 1 
") 0""0  " "/N/ '/ # *% &" %! "  "/ "),
 h /   /   H&  %2 J" ' %! "  " 0(0%'
/ 1 " /$ 0 )"'/" ") )" '"  " /!*"0 / 1 "
0"'"" 0 ") ") G ")&" # " /$ 0 )"'/" ") &%'0
 *" %"0 2 I" / 1  (" "P%"/" 1 )1)!  ")  "
%! 1 " / 1 " 0(0%' ")  " "P%"/" 2 4) " "P%"/"
*(" # " / 1 )1)!  L' )!M  L')%/M 
/$ )"'/" 0"'"" ") &00'" H''
(3 · c( )) + c( ) + c( ) + (4 · c( )) + c( ) + c( ).
i(" & "P%"/" 0 0  " 1 )1)!  ")
1)!  y[1..n]
/# " jklm klnmop qjx[1..m]  " / 1 " '" "."(" ")
"P%"/"  )1)!   x2 r"/)*"
y
0 ! '"! "  0$! / ) )! ,
x y
!  ' )!  N0 " "0 0/" 1)!  0 ) 
! ' ") "P%"/" 2 f'$O" " )% x[1..m]
! " 0y[1..n]
/" )"P%)"! "
1 $%) ' )! 2

Rate