登录
首页 » 数据结构 » /*数字三角形问题 问题描述: 给定一个由n行数字组成的数字三角形如下图所示。试设计一个算法,计算出从三角形的顶至底的一条路径,使该路径经过的数字总和最大。 7...

/*数字三角形问题 问题描述: 给定一个由n行数字组成的数字三角形如下图所示。试设计一个算法,计算出从三角形的顶至底的一条路径,使该路径经过的数字总和最大。 7...

于 2022-09-23 发布 文件大小:1.06 kB
0 183
下载积分: 2 下载次数: 1

代码说明:

/*数字三角形问题 问题描述: 给定一个由n行数字组成的数字三角形如下图所示。试设计一个算法,计算出从三角形的顶至底的一条路径,使该路径经过的数字总和最大。 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 编程任务: 对于给定的由n行数字组成的数字三角形,编程计算从三角形的顶至底的路径经过的数字和的最大值-/* Digital triangle Issue Description : given an OK by the number n of triangular figures shown in the diagram below. Design of a test algorithm, calculated from the top of the triangle to the end of a path, the path through the largest sum of the figures. 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 programming tasks : for a given n line by the number of digits triangle, triangle programming calculated from the top to the bottom of the path through the figures and the maximum

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

发表评论

0 个回复

  • 数据结构产品工序调度仿真
    mfc动态演示,基于贪婪法的拓扑排序。
    2022-08-07 10:39:11下载
    积分:1
  • 在线投票系统,本系统采用myeclipse开发工具,结合sqlserver2000数据库。完成一个在线投票系统...
    在线投票系统,本系统采用myeclipse开发工具,结合sqlserver2000数据库。完成一个在线投票系统-Online voting system, this system development tools myeclipse, combined with sqlserver2000 database. Completion of an online voting system
    2022-09-16 01:30:03下载
    积分:1
  • 是基于C#语言的一个学生管理系统数据库系统开发案例.很实用...
    是基于C#语言的一个学生管理系统数据库系统开发案例.很实用-Is based on the C# Language a student management system database system development case. Very practical
    2022-01-24 18:52:32下载
    积分:1
  • 数据库开发,实现多数据库交互,复杂查询语句
    数据库开发,实现多数据库交互,复杂查询语句-Database development, the realization of multi-database interaction, complex query
    2022-05-06 00:29:23下载
    积分:1
  • VBA代码名称条码
    应用背景客户使用OCX,整合事件,方法,属性,并通过事件时调用函数的参数,如呼叫中心学习罕见的OCX源码的…方法关键技术 ;在线dsoframerword在线dsoframerword在线编辑编辑控件编辑控制DSOFramer……爱尔兰啤酒OCX控件,这是美国控制的延续,自由分享!…
    2023-08-30 06:45:03下载
    积分:1
  • 清华大学类数据结构实现的乙
    清华大学数据结构课上实现的B+树,设计一个4阶B+树,包括: (1) 叶子的每个记录应该包括4字节(long)关键码值和60字节的数据字段(存储文件名等,可以自定),设每个叶子可以存储5条记录,而内部节点应该是关键码值/指针对。此外,每个节点还应该有指向同层下一个节点的指针、本节点存储的关键码数等; (2) 此4阶B+树应该支持插入、删除以及根据给定关键码值进行精确检索与关键码范围检索; (3) 显示(打印)此4阶B+树的生长(含删除节点)过程实例;-Tsinghua University class data structure to achieve the B-tree, the design of a B-tree four bands, including : (a) the leaves of each record should include 4-byte (long) key code value and 60 gigabytes of data fields (document storage, etc., can be set), set up each leaf store five records, and internal nodes is the key code value/means against. In addition, each node should have the same point under a layer of the target node, the node storage key code number; (2) The B-tree four bands should support the insertion, deletion and with the given key code value accurate retrieval and key codes scope retrieval; (3) Display (Print ) This four bands B-tree growth (including the deletion of nodes) process examples;
    2022-01-21 19:44:41下载
    积分:1
  • 线性表元素删除运算,删除线性表L中第i个位置上的元素
    线性表元素删除运算,删除线性表L中第i个位置上的元素-linear elements to delete Table Operational delete Table L linear section i positions on the elements
    2023-03-18 20:20:03下载
    积分:1
  • 大学毕业的课题,可能比较简单一点,入门的人可以
    大学毕业的课题,可能比较简单一点,入门的人可以-University graduate topics that may be relatively simple, entry can
    2022-02-04 15:47:49下载
    积分:1
  • 动态网站购物
    应用背景关键技术
    2023-01-27 14:15:04下载
    积分:1
  • 用vb做的一个关于学生信息管理的系统,功能齐全,适合做学生毕业设计。
    用vb做的一个关于学生信息管理的系统,功能齐全,适合做学生毕业设计。-Vb make use of a student information management system, full-featured, suitable for graduate students to do the design.
    2022-06-12 09:42:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载