登录
首页 » 数据结构 » 在一个圆形操场的四周摆放着n堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的两堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。试设计一个算...

在一个圆形操场的四周摆放着n堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的两堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。试设计一个算...

于 2022-03-22 发布 文件大小:2.08 kB
0 196
下载积分: 2 下载次数: 1

代码说明:

在一个圆形操场的四周摆放着n堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的两堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。试设计一个算法,计算出将n堆石子合并成一堆的最小得分和最大得分,并分析算法的计算复杂度。-in a circle around the playground are placed n gravel pile. Is a stone should order to be merged into a heap. Stipulated that only elected adjacent to the pile of gravel into the new heap, and a new pile of gravel credited for the combined scores. Design a test algorithm to calculate n heap into a pile of gravel to the minimum score and the biggest score and analysis of algorithm complexity.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这个来源属于中国公开
    本源码属于mysql开源数据库的中文帮助文档,设计sql的基本操作,和mysql特定的规范。-This source belongs to the Chinese open-source database mysql help documentation, design sql basic operations, and the mysql-specific norms.
    2022-04-16 13:30:13下载
    积分:1
  • 各种常用的排序算法源程序,包括快速排序/归并排序/带限期的排序以及贪心法的实现程序...
    各种常用的排序算法源程序,包括快速排序/归并排序/带限期的排序以及贪心法的实现程序-various commonly used algorithm source, including rapid sequencing/merge sorting/ranking with the deadline and the greedy method to achieve procedures
    2022-12-08 12:20:03下载
    积分:1
  • 二叉树的遍历实现:
    对二叉树的遍历的简单实现,作为数据结构的入门程序还是很好的,虽然很简单但是当初我作为初学者想方设法写出这个小程序的时候还是发现了自己理解上的一些盲点。数据结构重在实践,大家多练~一起加油,里面还包含了我最开始写的时候容易犯的一些错误。里面有为实现层次遍历写到的队列结构和为非递归用到的栈的结构。
    2022-07-12 15:28:31下载
    积分:1
  • network message boards No. 2004 v1.0
    睿网留言版 2004 v1.0-network message boards No. 2004 v1.0
    2022-03-01 13:59:50下载
    积分:1
  • data structure c
    数据结构c++-书的一些源代码-data structure c-some of the source code
    2022-01-30 17:25:38下载
    积分:1
  • 后台管理 用户名 admin 密码 admin
    后台管理 用户名 admin 密码 admin --------------------------------------------------- 功能说明 系统本着简洁实用的原则开发,便于使用者查询浏览,以及 查看药品库存情况和经营情况,实时操作药品库存数据。 前台部分: 药品信息、查询、库存操作、销售统计 后台管理部分: 管理员管理、分类管理、规格管理、产地管理、进货商管理、 药厂管理、药品添加、药品管理 --------------------------------------------------- 相关说明 本系统基于WEB浏览,须上传到服务器或自行建立IIS 本系统系自行设计自行开发,内部使用而制作,无后续升级版本-background management user name admin password admin--------------------------------------------------- system functionality In simple practical principles developed to facilitate users of Wikipedia, and check inventory of drugs and the operation of Real-time operating medicine inventory data. Prospects : drug information, inquiries, and inventory operations, the sale of statistical background management component : Administrators management, management, management specifications, production management, purchase management of pharmaceutical management, chemical additives, Drug Management---------------------------
    2022-03-24 19:09:08下载
    积分:1
  • 产品工序调度仿真
    mfc动态演示,基于贪婪法的拓扑排序。
    2022-08-07 10:39:11下载
    积分:1
  • 2022-05-10 13:15:46下载
    积分:1
  • 一个效率很高的通配符查找算法,适用于对"*"和“?”的通配符查找,可以根需要进行修改,适用于不同应用, 另外还有一个非常适用的CRC检查算法...
    一个效率很高的通配符查找算法,适用于对"*"和“?”的通配符查找,可以根据需要进行修改,适用于不同应用, 另外还有一个非常适用的CRC检查算法-a highly efficient wildcard search algorithm that applies to the "*" and "the" wildcard search, it may need to make changes apply to different applications, there is another very applicable CRC check algorithm
    2023-02-08 23:20:04下载
    积分:1
  • 利用分裂基算法求实序列 的DFT, 的虚部赋值为零。
    利用分裂基算法求实序列 的DFT, 的虚部赋值为零。-Split-radix algorithm for the use of realistic sequence of DFT, the imaginary part of the assignment to zero.
    2022-11-17 08:45:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载