remainingeq2

eq2  时间:2021-01-06  阅读:()
Thisdocumentistheonline-onlyappendixto:Efficientk-closestpairqueriesingeneralmetricspacesYunjunGao·LuChen·XinhanLi·BinYao·GangChenReceived:21May2014/Revised:10February2015/Accepted:13March2015A.
EXAMPLEOFRMAEXAMPLE1.
WeillustrateRMAusingtherunningexampledepictedinFig.
7,andsupposek=2.
Firstofall,RMAupdatesmaxCPD2to5.
5usingLemma2,andprunestherootentrypairEP3,EQ1byRule1duetomindist(EP3,EQ1)>maxCPD2.
IttheninvokesRMA-PEPfortherootentrypairEP2,EQ1withthesmallestmindist.
SinceEP2andEQ1aretheintermediateentriespointingtonon-leafnodes,RMA-PEPcallsPRUNEtoevaluatethesubentriesofEP2,i.
e.
,EP6andEP7,whichcannotbediscardedbyRules1-2.
Similarly,thesubentriesEQ3andEQ4ofEQ1canalsonotbepruned.
Next,itevaluatestheremainingsubentriesnotpruned.
Forexample,sincebothemindist(EP6,EQ3)andmindist(EP6,EQ3)aresmallerthanmaxCPD2,EP6,EQ3isinsertedintoH,andmaxCPD2isupdatedto5viaLemma1;whileasmindist(EP6,EQ4)andmindist(EP6,EQ4)arelargerthanmaxCPD2,EP6,EQ4andEP7,EQ4arediscarded.
Atthistime,thealgorithmgetsH={EP6,EQ3,EP7,EQ3},andthen,recursivelyinvokesRMA-PEPforeveryentrypairinHuntilmindist(EP7,EQ3)>maxCPD2,afterwhichSR={p7,q3,p6,q3}.
Thereafter,similarasEP2,EQ1,RMAbacktrackstovisitthenextrootentrypairEP1,EQ2.
Thealgorithmproceedsinthesamemanneruntilmindist(EP1,EQ1)>maxCPD2,andreturnsthefinalqueryresultsetSR={p5,q9,p4,q9}.
Fig.
22illustratesthemainoperationsofRMAforM2CPsearch,inwhichtheprunedentrypairsareshownwithstrikethroughfonts.
B.
EXAMPLEOFIMAEXAMPLE2.
ConsidertherunningexampleillustratedinFig.
7again.
Tobeginwith,IMAupdatesmaxCPD2to5.
5usingLemma2,andinsertstherootentrypairsnotpruned(byRule1)intoH,whereH={EP2,EQ1,EP1,EQ2,EP1,EQ1,EP2,EQ2,EP3,EQ2}.
Then,itvisitsthetopentrypairEP2,EQ1ofH,addsallqualifiedsubentrypairsofEP2,EQ1notprunedbyRules1-2toH,andupdatesmaxCPD2to5viaLemma1.
Thereafter,similarasEP2,EQ1,IMAvisitstheheadentryEP1,EQ2ofH.
Next,itvisitsthetopentryEP5,EQ6ofH.
SinceEP5andEQ6pointstoleafnodes,IMAupdatesSRto{p5,q9,p4,q9},andmaxCPD2tod(p4,q9)(=1.
2).
Finally,IMAterminatesandreturnsthefinalresultsetSR,duetomindist(EP1,EQ1)>maxCPD2.
ThemainoperationsofIMAforM2CPretrievalaredepictedinFig.
23,wheretheprunedentrypairsareshownwithstrikethroughfonts.
C.
EXAMPLEOFEHMEXAMPLE3.
ConsidertherunningexampleshowninFig.
7again,andsupposeeCPD2=3(k=2).
Firstofall,EHMoperationsandcontentsoflocalheapsProcessrootentrypairsandgetH1={,,,,,},,,SRmaxCPDk5.
551.
233VisitofH1andgetH2={,,,}VisitofH2andupdateSRTerminatevisitingH2duetomindist(EP7,EQ3)>maxCPDkBacktracktovisitofH1andgetH3={,,,}VisitofH3andupdateSR,TerminatevisitingH3duetomindist(EP5,EQ5)>maxCPDk31.
2,TerminatevisitingH1duetomindist(EP1,EQ1)>maxCPDk,1.
2Fig.
22IllustrationofRMAoperationsProcessrootentrypairsVisitVisitVisitH(global),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SRmaxCPDk5.
5531.
2Fig.
23IllustrationofIMAupdatesmaxCPD2to5.
5,prunestherootentrypairEP3,EQ1asmindist(EP3,EQ1)>maxCPD2,andinsertsEP2,EQ1intoS(duetomindist(EP2,EQ1)=0),EP3,EQ2intoCH(asmindist(EP3,EQ2)>eCPD2),andEP1,EQ2,EP1,EQ1,EP2,EQ2intoH(sincetheirmindistarelargerthan0butsmallerthaneCPD2).
Then,thealgorithmvisitsthetopentrypairEP2,EQ1ofS,andaddsallitssubentrypairstoEHbecausetheiremindistislargerthaneCPD2.
Next,itvisitsentrypairsinHiterativelyuntilmindist(EP1,EQ1)>maxCPD2.
Finally,EHMterminates,andreturnsthefinalresultsetSR.
Notethat,inthiscase,compensationdoesnotneedsince,foreveryentrypairEP,EQpreservedinEHandCH,theiremindistormindistarelargerthanmaxCPD2.
Also,theI/OcostofEHMisthesameasthatofIMA,i.
e.
,threeintermediateentrypairsareaccessed.
Nevertheless,EHMavoidscomputingthemindistforentrypairsstoredinEH,incurringsmallercomputationalcost.
Fig.
24illustratestheoperationsofEHMforM2CPretrieval.
D.
EXAMPLEOFEHSEXAMPLE4.
WeillustrateEHSusingtheSM2CP(k=2)queryontheobjectsetOshowninFig.
2a,andsupposeeCPD2=r4.
Firstofall,EHSupdatesmaxCPD2withr5usingLemma7,andinsertse5,e5,e5,e6,ande6,e6intoSastheirmindistsequalsto0.
Itthenvisitsthetopentrye5,e5ofS,andcallsEHS-PEPtoexpande5,e5.
Sincee5=e5ande5pointstothenon-leafnode,EHS-PEPinsertsthequalifiedsubentrypairse1,e1,e1,e2,ande2,e2intoS,andupdatesmaxCPD2tor2usingLemma7.
Next,EHSvisitsthetopentrypaire1,e1ofS,andinvokesEHS-PEPtoexpande1,e1.
Sincee1=e1ande1pointstotheleafnode,EHS-PEPupdatesSRto{o1,o2}.
Similarly,thealgorithmproceedstoevaluateentrypairsofSuntilSisempty.
Finally,thealgorithmterminatesandreturnsSR={o3,o4,o1,o2}.
Fig.
25showstheoperationsofEHSforSM2CPretrieval.
E.
EXAMPLEOFMSAEXAMPLE5.
ConsidertheSM2CP(k=2)queryontheobjectsetOshowninFig.
2a,withCOMdnn-treeillustratedinFig.
10.
First,maxCPD2isinitializedtoinfinity.
MSAinsertsrootentriese5ande6intoH.
Then,itpopsthetopentrye5fromH.
Sincee5pointstothenon-leafnode,thealgorithminsertsthequalifiedsub-entriese1ande2intoH,sincee1.
dnn(=r1)ande2.
dnn(=d(o3,o4))aresmallerthanmaxCPD2.
Next,thealgorithmpopstheheadentrye1fromH.
Ase1pointstotheleafnode,thequalifiedsubentries(objects)o1ando2areinsertedintoCH.
Then,e2isprocessedsimilarly,afterwhichCH={o3,o4,o1,o2}andmaxCPD2=r1.
Thereafter,e6ispopped,andthewhile-loopstopsduetoe6.
dnn>maxCPD2.
Inthesequel,MSAevaluateseachobjectoiinCHinorder,andcomparesoiwithalreadyvisitedobjectsojtoupdateSRandmaxCPD2ifd(oi,oj)≤maxCPD2.
Forexample,whenvisitingo4,asd(o4,o3)≤maxCPD2,SRisupdatedto{o3,o4}.
Finally,thealgorithmreturnsSR={o3,o4,o1,o2}.
Fig.
26depictstheoperationsofMSAforSM2CPretrieval.
operationsProcessrootentrypairsVisitofSVisitofHVisitofHS,,,,,,,,,,,,,,HCHEH,,,,,,,,,SRmaxCPDk5.
5531.
2Fig.
24IllustrationofEHMoperationsProcessrootentrypairsVisitofSVisitofSVisitofSSSR,,HCHEH,,,,,,,VisitofS,,,,VisitofS,,VisitofS,,VisitofSVisitofSVisitofS,,,,maxCPDkr5r2r2r2r1r1r1r1r1r1Fig.
25IllustrationofEHSoperationsProcessrootentriesVisite5ofHVisite1ofHHSRe5,e6CHmaxCPDke1,e2,e6e2,e6Visito3ofCHe6Visito4ofCHVisito1ofCH,Visite2ofHo1,o2o3,o4,o1,o2o3,o4,o1,o2o3,o4,o1,o2Visito2ofCHo3,o4,o1,o2o3,o4,o1,o2r1r1r1r1r1∞∞∞Fig.
26IllustrationofMSA

盘点AoYoZhuJi傲游主机商8个数据中心常见方案及八折优惠

傲游主机商我们可能很多人并不陌生,实际上这个商家早年也就是个人主机商,传说是有几个个人投资创办的,不过能坚持到现在也算不错,毕竟有早年的用户积累正常情况上还是能延续的。如果是新服务商这几年确实不是特别容易,问到几个老牌的个人服务商很多都是早年的用户积累客户群。傲游主机目前有提供XEN和KVM架构的云服务器,不少还是亚洲CN2优化节点,目前数据中心包括中国香港、韩国、德国、荷兰和美国等多个地区的CN...

iON Cloud:新加坡cn2 gia vps/1核/2G内存/25G SSD/250G流量/10M带宽,$35/月

iON Cloud怎么样?iON Cloud升级了新加坡CN2 VPS的带宽和流量最低配的原先带宽5M现在升级为10M,流量也从原先的150G升级为250G。注意,流量也仅计算出站方向。iON Cloud是Krypt旗下的云服务器品牌,成立于2019年,是美国老牌机房(1998~)krypt旗下的VPS云服务器品牌,主打国外VPS云服务器业务,均采用KVM架构,整体性能配置较高,云服务器产品质量靠...

香港 1核1G 29元/月 美国1核 2G 36元/月 快云科技

快云科技: 11.11钜惠 美国云机2H5G年付148仅有40台,云服务器全场7折,香港云服务器年付388仅不到五折 公司介绍:快云科技是成立于2020年的新进主机商,持有IDC/ICP/ISP等证件资质齐全主营产品有:香港弹性云服务器,美国vps和日本vps,香港物理机,国内高防物理机以及美国日本高防物理机官网地址:www.345idc.com活动截止日期为2021年11月13日此次促销活动提供...

eq2为你推荐
虚拟主机虚拟主机是干什么用的美国vps服务器打听下,国外V P S服务器哪个好?域名备案查询如何查询自己域名是否备案,怎么查询备案号?域名服务商域名服务商所属区域怎么填写asp网站空间说ASP空间是做网站的空间是啥意思?免费网站空间申请需要一个免费的网站空间申请地址。北京网站空间网站空间哪里的好,免备案虚拟主机哪家免备案虚拟主机好,而且便宜点的?万网虚拟主机如何购买万网的虚拟主机?虚拟主机mysql虚拟主机的数据库有哪些
免备案虚拟主机 万网域名空间 香港bgp机房 国外bt tk域名 灵动鬼影 howfile 老左正传 泉州移动 免费测手机号 外贸空间 网购分享 百度云加速 韩国代理ip 杭州电信宽带优惠 免备案cdn加速 sonya web服务器 linux服务器系统 美国vpn服务器 更多