[SOLVED] MapRedeuceTop-k

$25

File Name: MapRedeuceTop-k.zip
File Size: 141.3 KB

5/5 - (1 vote)

MapRedeuceTop-k
Top-k:mLi,Ox,k.
:
P
L1
L2
L3

1


2


3


4


5


6


7


,m=3,3Ox,
O1L1,10,L2,2,L3,10,
O1=10+2+10=22
Top-k,,.

:
Inputm
Outputk
Step1kOV`(Ox).
Step2Ox1Ox2V(Ox1)V(Ox2)V(Ox1)V(Ox2)Ck1T=1/m.
Step31.TStep1V`(O)OxV=0.
2.OyOyV(Oy)CCk2.
3.U=U1`(O)+U2`(O)++Um`(O)OTU(O)2.
Step4SSTop-k.

,:
Step1:
V`(O1)=10+0+10=20V`(O2)=0+10+0=10;V`(O3)=8+0+10=18V`(O4)=0+9+0=9.
V`(O1)=20V`(O3)=18V`(O1)=19V`(O3)=18C1.
V(O1)=10+2+10=22V(O3)=8+3+10=21k1T=1/m=21/3=7
Step2
(1)T,:L1P=6;L2P=4;L3P=6;
(2)V`(O):V`(O5)=8+0+0=8;V`(O6)=8+8+7=23;V`(O7)=0+0+8=8V`(O8)=0+0+0=0V`(O9)=0+0+7=7(C1C1C1k22=V(O1)=22)
(3)U(O5)=8+T+T=8+7+7=22()U(O7)=T+T+8=22()U(O8)=T+T+T=21()U(O9)=T+T+7=21().
Step3SS={O1O2O3O4O6}
STop-kV(O6) =23; V(O6) =22
TPUTNT-TPUT.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] MapRedeuceTop-k
$25