分治法求逆序数

上传者: dzyhenry | 上传时间: 2021-09-27 20:42:46 | 文件大小: 948KB | 文件类型: RAR
求逆序数的方法很多。最容易想到的办法是分别对序列中每一个元素求其逆序数,再求所有元素的逆序数总和,易分析得出这样的方法其时间复杂度为O(n2)。而这里采用的分治法求逆序数,其时间复杂度为O(nlogn)。

文件下载

资源详情

[{"title":"( 39 个子文件 948KB ) 分治法求逆序数","children":[{"title":"InversionCount","children":[{"title":"Debug","children":[{"title":"InversionCount.exe <span style='color:#111;'> 28.50KB </span>","children":null,"spread":false},{"title":"InversionCount.pdb <span style='color:#111;'> 419.00KB </span>","children":null,"spread":false},{"title":"InversionCount.ilk <span style='color:#111;'> 309.59KB </span>","children":null,"spread":false}],"spread":true},{"title":"ipch","children":[{"title":"inversioncount-89129bc3","children":[{"title":"inversioncount-a1a60e72.ipch <span style='color:#111;'> 2.88MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"InversionCount.sln <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"InversionCount.sdf <span style='color:#111;'> 2.27MB </span>","children":null,"spread":false},{"title":"InversionCount.suo <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"InversionCount","children":[{"title":"inversionCount.cpp <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"cl.command.1.tlog <span style='color:#111;'> 870B </span>","children":null,"spread":false},{"title":"InversionCount_manifest.rc <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"link.7292.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 778B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"vc100.idb <span style='color:#111;'> 59.00KB </span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"InversionCount.lastbuildstate <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"link.7292-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"InversionCount.exe.intermediate.manifest <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"InversionCount.log <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'> 68.00KB </span>","children":null,"spread":false},{"title":"inversionCount.obj <span style='color:#111;'> 9.57KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"InversionCount.exe.embed.manifest.res <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"InversionCount.exe.embed.manifest <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"link.7292-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.7292.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'> 516B </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 506B </span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false}],"spread":false},{"title":"h1.h <span style='color:#111;'> 662B </span>","children":null,"spread":false},{"title":"InversionCount.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"InversionCount.vcxproj.filters <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"InversionCount.vcxproj <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明