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

Description of the problem: Given n

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

  • 宾馆客房管理系统的源码
    宾馆客房管理系统的源码-Hotels Rooms source code management system
    2022-01-26 04:01:45下载
    积分:1
  • 链接
    数据结构 链表 按顺序合并两链表。 pa =1 2 4 7 9 11 16 pb= 1 6 9 23 24 36 1 1 2 4 6 7 9 11 16 23 24 36-link
    2022-02-02 15:42:46下载
    积分:1
  • data structure : procedures Chain
    数据结构:链表程序-data structure : procedures Chain
    2022-03-20 21:49:14下载
    积分:1
  • Linear chain, said the table when the realization of all basic operations, such...
    线性表的链式表示时各基本操作的实现,例如链表的初始化,删除,添加,-Linear chain, said the table when the realization of all basic operations, such as the initialization list, delete, add, and so on
    2022-08-19 16:08:07下载
    积分:1
  • 一个封装好的产生随机的类,十分好用,是学是写的,希望对大学有用...
    一个封装好的产生随机数的类,十分好用,是学数据结构是写的,希望对大学有用-Generate a good random number package class, very easy to use is data structure is written in the hope of the University of useful
    2022-01-31 13:43:50下载
    积分:1
  • 利用C语言实现迷宫算法。 利用随机函生成迷宫,并显示所有路径!...
    利用C语言实现迷宫算法。 利用随机函数生成迷宫,并显示所有路径!-use C language maze algorithm. Using random function generator maze, and that all paths!
    2023-05-08 21:55:03下载
    积分:1
  • Bplustree (实现的功能)
    每个关键字的指针指向的内容,稍后我会搜索特定的内容,直接在二叉树搜索关键字,找到一个匹配
    2022-05-04 21:58:08下载
    积分:1
  • 这是我制的,调试过,小意思别见笑可以将输入的两字符串进行比较相等返回0,不等时返回两字符串的差值...
    这是我制的,调试过,小意思别见笑可以将输入的两字符串进行比较相等返回0,不等时返回两字符串的差值-This is my system, and the debugging that other small token of kindly feelings can be a laughing stock of the two input strings equal to 0 comparison, the returns ranging from two strings of the margin
    2023-08-19 11:55:03下载
    积分:1
  • 一个简单的用户认证系统,用vfp写的 是我们的一个作业
    一个简单的用户认证系统,用vfp写的 是我们的一个作业-a simple user authentication system, with the Probe was one of our operations
    2022-07-18 23:18:30下载
    积分:1
  • 停车场管理系统的源代码
    由于停车场是一个狭窄通道,而且只有一个大门可供汽车进出,问题要求汽车停车场内按车辆到达时间的先后顺序,依次由北向南排列。由此很容易联想到数据结构中的堆栈模型,因此可首先设计一个堆栈,以堆栈来模拟停车场,我设计用顺序存储结构来存储停车场内的车辆信息,并给车辆按进栈顺序编号,当停车场内某辆车要离开时,在他之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入停车场。这是个一退一进的过程,而且让道的汽车必须保持原有的先后顺序,因此可再设计一个堆栈,以之来暂时存放为出站汽车暂时让道的汽车。当停车场满后,继续进来的汽车需要停放在停车场旁边的便道上等候,若停车场有汽车开走,则按排队的先后顺序依次进站,最先进入便道的汽车将会最先进入停车场,这完全是一个先进先出模型,因此可设计一个队列来模拟便道,队列中的数据元素设计成汽车的车牌号,并以链表的形式存储。另外,停车场根据汽车在停车场内停放的总时长来收费的,在便道上的时间不计费,因此必须记录车辆进入停车场时的时间和车辆离开停车场时的时间,然后计算、显示费用情况。
    2023-04-01 23:20:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载