-
试试 Moodle 的电子学习
Moodle 是一个开源免费的电子学习网站。
简单下载 moodle 安装它......
在你的 htdocs......
& 使用它在多个方面......访问作为老师经理、 学生、 部门首长和管理员...
- 2023-07-08 10:20:04下载
- 积分:1
-
b
说明: 定义一个类SortArray继承自MyArray,在该类中定义函数sort实现排序功能。
定义一个类ReArray继承自MyArray,在该类中定义函数reverse实现逆转功能。
定义一个类AverArray继承自MyArray,在该类中定义函数Aver实现求解整数的平均值。
定义NewArray类,同时继承了SortArray、ReArray和AverArray,使得NewArray类的对象同时具有排序、逆转和求平均值的功能。在继承的过程中声明为虚基类,体会虚基类在解决二义性问题中的作用。
(Define a class SortArray inherited from MyArray, defined in the class sorting function sort implementation. Define a class ReArray inherited from MyArray, define the function in reverse to achieve such reversal function. Define a class AverArray inherited from MyArray, defined in the class to solve integer function Aver achieve the average. Defined NewArray class, and inherits SortArray, ReArray and AverArray, making the object of both NewArray class sorting, reversing, and the mean value of the function. In the process of succession declared as virtual base classes, virtual base class experience in resolving ambiguities of the role.)
- 2010-06-02 02:13:03下载
- 积分:1
-
有关启发式搜索的经典算法:A*最短路径算法的实例和对应程序。关注的朋友可以留意一下。(比传统的Dijistra算法效率高很多哦!^_^)...
有关启发式搜索的经典算法:A*最短路径算法的实例和对应程序。关注的朋友可以留意一下。(比传统的Dijistra算法效率高很多哦!^_^)-the heuristic search algorithm of the classic : A* shortest path algorithm examples and the corresponding procedures. Concerned friends can look. (Dijistra than the traditional algorithm efficiency is much higher oh 70,000
- 2022-01-26 05:59:44下载
- 积分:1
-
各种数据库语法,如 Oracle、DB2、Informix、MySql、Postgre
各种数据库语法,如 Oracle、DB2、Informix、MySql、Postgre-Syntax of various databases such as Oracle, DB2, Informix, MySql, Postgre
- 2022-03-20 07:32:02下载
- 积分:1
-
建立赫夫曼树,然后再由叶子到根实现赫夫曼编码。
建立赫夫曼树,然后再由叶子到根实现赫夫曼编码。-Huffman tree set up, and then leaves to the root by the Huffman encoding implementation.
- 2022-03-09 23:03:38下载
- 积分:1
-
堆栈的基本功能实现,数组方式实现
堆栈的基本功能实现,数组方式实现-stack to achieve the basic functions, arrays means
- 2022-01-21 05:06:54下载
- 积分:1
-
The document completed Kruskal algorithm. This document consists of three catego...
本文件主要完成Kruskal算法。本文件包括三个类,分别是顶点类、边类和Kruskal类。-The document completed Kruskal algorithm. This document consists of three categories, namely category vertex, edge type and Kruskal category.
- 2022-05-23 10:24:28下载
- 积分:1
-
两列双向链表相同值查询设计:
实现内容:构建两个双向链表,能够根据第一个链表中的值查询在第二个链表中的相同值的位置...
两列双向链表相同值查询设计:
实现内容:构建两个双向链表,能够根据第一个链表中的值查询在第二个链表中的相同值的位置-2 bi-directional value chain the same query design: the realization of content: To construct two two-way linked list, according to the first list of values query in the second list value in the same position
- 2023-01-08 11:20:03下载
- 积分:1
-
TSP
说明: Traveling Salesman Problem
市场上有很多种商品,旅行商 Shrek 做短期买卖赚取差价。他从一个城市购买一件商品,到达下一个相邻的城市就卖掉。如果这一次买卖无利可图,那么他就不会这么走。凭着自己和同伴多年的经验,他已经对地图上 n 个城市之间的差价了如指掌。两城市间可能有多种商品可赚取差价,此时 Shrek 只好倒卖利润最大的一件商品。
现在请你帮 Shrek 规划一条路线,使他能赚最多的钱。
输入
第一行两个整数 n、m。表示有 n 个城市,编号 1 ~ n
接下来有 m 行,每行三个整数 a、b、price,表示从城市 a 到城市 b 可赚取差价 price。
输出
若干空格分隔的整数,连成一条赚钱最多的路线。若有多条,输出字典序最小的那条路线(编号小的城市靠前的路线优先输出)
输入样例
4 4
2 1 5
1 3 3
3 4 1
1 4 5
输出样例
2 1 4(Traveling Salesman Problem)
- 2020-12-05 13:59:23下载
- 积分:1
-
求出一个序列的最长升序列,使用了动态规划的方法
求出一个序列的最长升序列,使用了动态规划的方法-Obtained or a sequence of the longest sequence, using the dynamic programming approach
- 2022-02-25 07:18:05下载
- 积分:1