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

Description of the problem: Given n

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

  • 系统说明:这是一个应用库系统VFP开发的酒店管理系统.
    系统说明:这是一个应用数据库系统VFP开发的酒店管理系统.-system Note : This application is a database system developed by VFP hotel management system.
    2022-08-18 03:38:43下载
    积分:1
  • 我是第一次来这里还不知道用什么方式上传程序,请大家谅解。用powerbuilder打开本文件就可以...
    我是第一次来这里还不知道用什么方式上传程序,请大家谅解。用powerbuilder打开本文件就可以-is the first time I come here do not know what way to upload procedures, please understanding. Using PowerBuilder open this document can be
    2022-03-18 14:06:27下载
    积分:1
  • 1. Still used MyDatabase database, with SYSDBA user login. 2. In ISQL, followed...
    1. 仍然使用MyDatabase数据库,用SYSDBA用户登录。 2. 在ISQL中,依次输入第4章的数据表创建SQL语句;或者根据表4-1至4-8自行创建数据表。(可以直接使用光盘提供的MyDatabase.GDB数据库。) 3. 使用MyDB数据库连接,在SQL Explorer中输入原始数据。除了表4-9和表4-10的内容,还需要在USER_PASS表中设置一个权限为’3’的JWC用户名,用于课程的调度;设置若干个教师的账号(需要在TEACHER数据表中设置相应信息),权限为’2’;若干学生的账号。 4. 修改源代码中数据库连接组件Database的参数,包括服务器地址、登录用户名和默认密码。 -1. Still used MyDatabase database, with SYSDBA user login. 2. In ISQL, followed importation of Chapter 4 of the data table creation SQL; Or, according to Table 4-1 4-8 to set up a data table. (CD can be used directly for the MyDatabase.GDB database.) 3. Use a few MyDB According to the Link, SQL Explorer in the original input data. In addition to Table 4-9 and table of contents 4-10. USER_PASS also need a table set up the authority of the"3 "JWC user name, for course scheduling; Several teachers set up the account (in TEACHER data tables set up corresponding information), the authority of"2 "; Several student"s account. 4. Modifying the source code, database
    2023-06-03 00:05:04下载
    积分:1
  • binary tree first sequence, sequence after sequence, layer by traversal algorith...
    二叉树的先序,中序,后序,按层遍历算法。以中序输入,用‘#’代替叶子节点的子节点输入。-binary tree first sequence, sequence after sequence, layer by traversal algorithm. The order to import, use "#" instead of the leaf nodes for input nodes.
    2022-12-12 20:15:03下载
    积分:1
  • 库的应用,基于索引,实现一个简单的B+树搜索树
    数据库的应用,基于索引,实现一个简单的B+树搜索树 -Database application, based on the index, the realization of a simple B+ tree search tree
    2022-03-04 03:54:13下载
    积分:1
  • 从树上删除一个节点…
    Delete a node from a tr-Delete a node from a tree...
    2022-03-24 20:23:24下载
    积分:1
  • C语言实现中最短路径的算法代码,有图形显示。欢迎下载...
    C语言实现数据结构中最短路径的算法代码,有图形显示。欢迎下载-C language data structure, the shortest path algorithm code, a graphical display. Welcome to download
    2023-03-07 14:50:03下载
    积分:1
  • VB编写的简单打印控件
    VB编写的简单打印控件-prepared by the simple VB Control Print
    2022-07-22 23:42:00下载
    积分:1
  • 学籍管理系统软件,使教学人员及操作者进行学籍管理,方便操作者随时添加、查询、修改,使工作人员从繁琐的填表,查表工作中解放出来;使供需双方都获得满意的果;促进报...
    学籍管理系统软件,使教学人员及操作者进行学籍管理,方便操作者随时添加、查询、修改,使工作人员从繁琐的填表,查表工作中解放出来;使供需双方都获得满意的结果;促进报表、统计数字的规范化;提高工作效率;降低学籍管理维护费用,提高行政工作效率,改善服务质量,为学校领导决策提供支持,该软件的设计目标尽量达到人力与设备的节省,并且处理数据的速度提高。-Grade Management System software to enable the operator to conduct teaching staff and student status management, helping the operator at any time to add, query, modify, so that staff from the tedious filling, look-up table work, freed so that supply and demand both sides to obtain satisfactory results the promotion of reports, statistics, standardization improve work efficiency student status management to reduce maintenance costs, improve administrative efficiency and improve service quality, school leadership to support decision-making, the software is designed to reach as far as possible to save manpower and equipment, and processing data increase the speed.
    2023-01-14 18:15:04下载
    积分:1
  • 网络流量分析,系统采用集成开发环境…
    网站流量图表分析,本系统采用myeclipse集成开发环境,采用sqlserver2000数据库。-Web flow chart analysis, the system uses the integrated development environment myeclipse using sqlserver2000 database.
    2022-01-31 21:18:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载