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

Description of the problem: Given n

于 2022-04-30 发布 文件大小:738.99 kB
0 173
下载积分: 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 个回复

  • 作业与复习题目
    数据结构作业与复习题目-data strcture homework and review
    2022-12-21 10:30:04下载
    积分:1
  • 的乘法
    应用背景应用数组 可以实现的算法和解决的问题非常多,这里举 一个非常典型的例子一一大整数 乘怯 。这个例子所采用的方法和思想都非常巧妙  。由于计算机的精度是有限的,因此单纯使 用程序设计语言提供的原子数据类型来完成两个大整数的乘法显然是不切实际的。 关键技术可以考虑 用两个数组来分别存储 一些小于 10 的整数 ,这些数字按顺序排列在一起,分别表 示一个大整数的每一位上的数字,于是大整数的储存问题就解决了。然后按照基本乘法规则对这两个 大整数进行运算即可。下面给出了程序的代码。
    2022-02-07 02:59:09下载
    积分:1
  • 本程序用另外一种算法即近邻算法解决TSP,即旅行商问题,请高手指教....
    本程序用另外一种算法即近邻算法解决TSP,即旅行商问题,请高手指教.-this procedure with the other algorithms that solve the TSP neighbor algorithm, the traveling salesman problem, experts advise.
    2022-05-11 02:39:42下载
    积分:1
  • o
    o-r mapping 实现以面向对象的方式建立对关系型数据库的映射。-o-r mapping in order to achieve the object-oriented approach to the relational database mapping.
    2022-03-13 19:14:59下载
    积分:1
  • 一个最短路径算法,具体内容程序开头有介绍
    一个最短路径算法,具体内容程序开头有介绍-a shortest path algorithm, the specific content of the beginning of a process introduced
    2022-10-19 13:15:02下载
    积分:1
  • 刚刚用ACCESS做的
    刚刚用ACCESS做的-just do ACCESS
    2022-06-01 07:30:17下载
    积分:1
  • This program use for topological sorting
    This program use for topological sorting
    2022-07-11 19:14:24下载
    积分:1
  • 自动备份服务器到本地机器上.可以自动和手动设置.
    自动备份服务器数据到本地机器上.可以自动和手动设置.-automatic data backup server to the local machine. Automatic and manual configuration.
    2023-03-10 12:50:04下载
    积分:1
  • IOCP聊天室系统
          极大限制了服务器应用程序的使用,本程序采用ICPQ,利用端口实现的聊天室系统,可实现多个用户同时在线聊天,源代码包含了一份官方的文档,并加有注释。
    2022-02-06 08:17:34下载
    积分:1
  • 实用教程,让你学习不用愁,呵呵!希望这对你有用,能帮上一点忙!...
    实用数据结构教程,让你学习数据结构不用愁,呵呵!希望这对你有用,能帮上一点忙!-Practical Guide data structure, so you learn not worry about data structures, Oh! Hope this useful to you, we can help!
    2022-01-22 13:20:37下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载