登录
首页 » 算法 » 在一个圆圈周围的操场上的操场放置氮堆。石头是有…

在一个圆圈周围的操场上的操场放置氮堆。石头是有…

于 2022-03-18 发布 文件大小:1.01 kB
0 47
下载积分: 2 下载次数: 1

代码说明:

在一个圆形操场的四周摆放着n堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的2堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。试设计一个算法,计算出将n堆石子合并成一堆的最小得分和最大得分。 编程任务:对于给定n堆石子,编程计算合并成一堆的最小得分和最大得分。-Playground in a circle around the stones are placed n heap. Stone is to have the order to merge into a pile. Provisions can only choose 2 adjacent stones piled into a heap of new and new pile of stones a few in mind for its combined score. Try to design an algorithm to calculate the n heap into a pile of stones the minimum scores and maximum scores. Programming tasks: for a given n stack stone, into a pile of programming the calculation of the minimum scores and maximum scores.

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

发表评论

0 个回复

  • 一个简单的LINK连表
    一个简单的LINK连表算法-a simple algorithm table even LINK
    2022-02-06 03:55:32下载
    积分:1
  • linked stack c++
    C++代码,具有顺序栈和链栈的实现过程。主函数中有例程顺序栈被定义为一个结构类型,它有两个域data和top。data为一个一维数组,用于存储栈中元素,DataType为栈元素的数据类型。top为int型,它的取值范围为 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-01-12 16:45:03下载
    积分:1
  • 蚁群聚类程序
    蚁群算法聚类程序,开发环境为VC,通过界面可以设置程序运行参数,并可实时显示计算结果。
    2022-10-23 06:30:04下载
    积分:1
  • A program to demonstrate the optimization process of ant colony optimization for...
    A program to demonstrate the optimization process of ant colony optimization for the traveling saleman problem (TSP). The cities are shown as red circles, the pheromone on the connections between them (fully connected graph) by gray lines. The darker the grey, the more pheromone is currently on the edge. During the optimization, the currently best found tour is drawn in red. To run the optimization, first create a random TSP, then create an ant colony, and finally run the optimization.
    2022-02-19 22:51:42下载
    积分:1
  • 基于51单片机的信号产生于周期检测
    通过51单片机的外部中断接收信号,用51单片机定时器0的工作模式2记时,准确的产生一定周期的方波。同时当外部中断检测到信号的下降沿则打开定时器1记时,当第二个信号来时,关闭定时器1,读取时间,显示数据。
    2022-02-22 01:50:55下载
    积分:1
  • 自动谱分析:可用于丢失/采样/子束光谱分析;矢量自动迭代,可用于建模,故障诊断;...
    自动谱分析:可用于丢失/采样/子束光谱分析;矢量自动迭代,可用于建模,故障诊断;-The applications of this additional toolbox are: - Automatic spectral analysis for Irregular sampling/Missing data, analysis of spectral subbands, - Vector Autoregressive modeling and Detection [uses ARMASA] - Reduced statistics ARMAsel: A compact yet accurate ARMA model is obtained based on a given power spectrum. Can be used for generation of colored noise with a prescribed spectrum. - ARfil algorithm: The analysis of missing data/irregularly sampled signals - Subband analysis: Accurate analysis of a part of the power spectrum - Detection: Generally applicable test statistic to determine whether two signals have been generated by the same process or not. Based on the Kullback-Leibler index or Likelihood Ratio. - Analysis of segments of data, possibly of unequal length.
    2022-03-04 02:22:26下载
    积分:1
  • 单链表/顺序表删除节点
    该包中,包含两个程序,一个是DeleteSqlist.txt,它是顺序表删除一个节点的程序;另一个是DeleteLinklist.txt,单链表删除一个节点的程序,该代码在VC++6.0已调试通过,并能成功运行。
    2022-11-24 09:00:03下载
    积分:1
  • 矩阵计数器,用VC++实现了矩阵的一般运(加减乘),以及求逆求行列式值,和转置等运...
    矩阵计数器,用VC++实现了矩阵的一般运算(加减乘),以及求逆求行列式值,和转置等运算-matrix counter, with VC++ implementation of the matrix of the general computing (plus or minus x), and inverse seeking determinant value, and home to such operations
    2022-02-01 17:22:09下载
    积分:1
  • 生成条形码的DLL文件及其使用例子
    生成条形码的DLL文件及其使用例子- Production bar code DLL document and its use example
    2022-04-01 10:10:27下载
    积分:1
  • Term solution to the ant colony algorithm for TSP problem, the recommendations l...
    用语解决TSP问题的蚁群算法,初学者建议看!-Term solution to the ant colony algorithm for TSP problem, the recommendations look beginners!
    2023-01-18 20:10:02下载
    积分:1
  • 696522资源总数
  • 104049会员总数
  • 30今日下载