登录
首页 » 数据结构 » Description of the problem: Given n

Description of the problem: Given n

于 2022-04-30 发布 文件大小:738.99 kB
0 133
下载积分: 2 下载次数: 1

代码说明:

问题描述: 给定n个石子,其重量分别a1,a2,a3...an,要求将其划分成m份,每一份的划分费 义为这份石了中最大重量与最小重量的差的平方。总划分费用等丁m份划分费用之和。 编程任务 对于给定的n个石子,求一种划分方案,使得总划分费用最小。-Description of the problem: Given n-stones, its weight, respectively a1, a2, a3 ... an, asked that it be divided into m copies, each of the division of costs defined as the weight of the stone of the largest and the smallest weight difference the square. Small m the total costs were divided into the sum of the cost. Programming tasks for a given n-stones, seek a kind of division, making the total cost of the smallest division.

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

发表评论

0 个回复

  • 进销存管理系统
    用sql sever 编制了一个数据库,delphi编制了操作界面,比较简单,可以通过这很好的学习delphi和数据库这块的内容,如sql 查询语言。
    2022-01-25 19:24:51下载
    积分:1
  • 栈(stack)是程序设计过程中经常遇到朝气一种形式,它对于的存放和操作有下面这样的特点: 1) 它只有一个对进行存入和取出的端口; 2) 后进...
    栈(stack)是程序设计过程中经常遇到朝气一种数据结构形式,它对于数据的存放和操作有下面这样的特点: 1) 它只有一个对数据进行存入和取出的端口; 2) 后进者先出,即最后被存入的数据将首先被取出。其形式很象一种存储硬币的小容器,每次只可以从顶端压入一个硬币,而取出也只可以从顶端进行,即后进先出。 这样的数据存储和管理形式在一些程序设计中很有用。例如,编译系统中(这是一类比较复杂的程序),对于函数调用的处理、对于表达式计算的处理,都利用了栈这样的数据结构。- The stack (stack) is in the programming process frequently meets the vitality one kind of construction of data form under, it has such characteristic regarding data depositing and the operation: 1) it only has a logarithm according to the port which carries on stores and takes out; 2) less advanced first leaves, namely finally the data which will store first is taken out. Its form looks like one kind of memory coin very much the small container, each time only may press in a coin from the peak, but takes out also only may carry on from the peak, namely less advanced first leaves. Such data storage and the management form are very useful in some programmings. For example, in the compiling system (this is a kind of quite complex procedure), transfe
    2023-08-22 21:50:04下载
    积分:1
  • 最小生成树
    1 2 0.0403 1 3 0.4747 1 4 0.7015 1 5 0.7936 1 6 0.2973 1 7 0.6139 1 8 0.4494 1 9 0.3155 1 10 0.8558 1 11 0.272 1 12 0.1045 1 13 0.6548 1 14 0.9271 1 15 0.3229 2 1 0.2182 2 3 0.9329 2 4 0.9521 2 5 0.8128 2 6 0.4044 2 7 0.6619 2 8 0.6596 2 9 0.3007 2 10 0.7244 2 11 0.2316 2 12 0.01 2 13 0.915 2 14 0.0878 2 15 0.0984 3 1 0.967 3 2 0.8945 3 4 0.749 3 5 0.9038 3 6 0.3022 3 7 0.2 3 8 0.7532 3 9 0.042 3 10 0.1991 3 11 0.8995 3 12 0.0592 3 13 0.4332 3 14 0.3324 3 15 0.17 4 1 0.434 4 2 0.3857 4 3 0.5991 4 5 0.5404 4 6 0.7573 4 7 0.96 4 8 0.8047 4 9 0.5279 4 10 0.1573 4 11 0.9087 4 12 0.3227 4 13 0.2898 4 14 0.5262
    2022-12-31 18:30:14下载
    积分:1
  • 关于库的源代码。适合初学者参考如何使用库。
    关于数据库的源代码。适合初学者参考如何使用数据库。-With regard to the database source code. Suitable for advanced users how to use the database.
    2023-03-08 14:20:03下载
    积分:1
  • 一个桌球室收费系统,其中有许多值得参考的地方。
    一个桌球室收费系统,其中有许多值得参考的地方。-a billiard room toll system, which has many things to learn.
    2022-02-20 04:46:48下载
    积分:1
  • 这是我的课程设计,经过我1周左右时间的润色,相信会对正在学习的人们有些用处...
    这是我的数据结构课程设计,经过我1周左右时间的润色,相信会对正在学习数据结构的人们有些用处-This is my data structure curriculum design, a week after I lay around, I believe it is currently studying the data structures useful in some people
    2022-05-30 06:00:47下载
    积分:1
  • 汉诺塔代码,从第一个木桩中,把所有盘子从大到小搬移到第三个木桩中....
    汉诺塔代码,从第一个木桩中,把所有盘子从大到小搬移到第三个木桩中.-HANOR code from a wooden blocks, all the dishes to the smallest movement pickets were third.
    2022-03-07 10:56:03下载
    积分:1
  • 浙江工业大学C++课程设计的练习作品 有一定的难度 有英文原题说明(老外授课)大家可以先看题自己做再参考我的程序...
    浙江工业大学C++数据结构课程设计的练习作品 有一定的难度 有英文原题说明(老外授课)大家可以先看题自己做再参考我的程序-C data structure courses designed exercises works have a certain degree of difficulty that the original is in English (non teaching) that we can look at ourselves with reference to the procedures I
    2022-03-05 16:31:00下载
    积分:1
  • err
    1.把"Web"文件夹内的文件拷贝到某个文件夹 2.在IIS中新建站点,指向该文件夹,如果新建虚拟路径,会导致一些图片的不正常显示. 3."Database"文件夹内有数据库文件hyb2bTest_Data.MDF,在Sql Server企业管理器中选择"附加数据库" 4.需要修改根目录web.config文件 ,改成当前数据库地址 ,改成当前数据库用户名 ,改成当前数据库密码 ,改成当前数据库名称 ,分别也换成当前数据库的地址,用户名、密码以及数据库名称。 5.后台登录地址: 当前路径+manage/index.aspx 帐户:admin 密码:admin 环境要求: Windows2000 / Windows2003 + IIS5 + .NET Framework 1.1 + MS SQL Server 2000 或各更高版本 演示地址:www.hyb2b.cn 电话:13061363607 MSN :huayousoft@hotmail.com-err
    2023-05-29 02:50:04下载
    积分:1
  • 使用动态规划的方法求接出怎样在两条装配线上以最快的时间完成装配任务...
    使用动态规划的方法求接出怎样在两条装配线上以最快的时间完成装配任务-The use of dynamic programming methods for how to access the assembly line in the two shortest time to complete the assembly task
    2022-01-26 02:53:19下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载