搜索资源列表
bestroute
- 运行应用本程序,输入节点个数n以及m各个节点的三元组信息。 m个三元组(it,jt,ft),t=1、2、……、m,两个节点it和jt之间有双向连接的直接连接,其距离为ft。输入节点g(1≤g≤n),程序将计算出可以由g达到的每个节点的最佳路由。并在显示器上输出运行结果。-Run the application of this procedure, enter the node number n and m nodes in all th
ysq
- .按照压缩存储的概念,只存储稀疏矩阵的非零元,以两个三元组{i,j,e}来表示矩阵的非零元的行,列和数值,就确定了一个非零元.由此,稀疏矩阵可由表示非零元的三元数组及行列数确定. 2.用户输入数据作为三元组的行,列和非零元的个数,用逗号隔开.并输入非零元的行,列和数值. 3.本程序只对两个矩阵进行四则运算,所的结果矩阵应该另生成,用二维数组存放,并放入新的矩阵-. In accordance with the concept of co
SparsenessMatrixOperation
- 稀疏矩阵的运算,因为稀疏矩阵是按三元组存取的,所以只要存这三个数-sparse matrix operations, as sparse matrix is based on triple access, as long as a few kept three
fasttrans
- 键盘任意输入一个稀疏矩阵A(m*n),采用三元组存储方法求其转置矩阵B(n*m),并用快速转置算法实现该操作。-keyboard indiscriminate importation of a sparse matrix A (n* m), using triple storage switch for its own matrix B (n* m), and fast algorithm home to the operation.
speed
- 列出最素勾股三元组的前10万项。(竞赛专用,拼速度的,一般机器<200ms)-presents the most triple-Gougu of 100,000. (Races dedicated utmost speed and general machinery
TMatrix
- 三元组表方法建立矩阵和基本操作.例如,相乘,相加,插入等.-Three groups, matrix and method of establishing the basic operation. For example, multiply, add, insert, etc..
addtriple_add
- :(1)随机产生两个可相加的稀疏矩阵(二维); (2)将产生的稀疏矩阵用两个三元组表的顺序存储结构存储; (3)将两稀疏矩阵相加的结果存储在第三个三元组表中。-: (1) the sum of two randomly generated sparse matrix (two dimensional) (2) will result in the sparse matrix with two triples t
juzheng
- 稀疏矩阵是矩阵中非零元小于零元的矩阵,按照压缩储存的概念,只储存稀疏矩阵的非零元。除了储存非零元的值外,还要同时记下它的行列位置。这样,稀疏矩阵就可以用一个三元组表确定。应为是矩阵,所以要用到TSMatrix的存储结构,来存储矩阵的三元组表。-Sparse matrix is non-zero matrix element of the matrix is less than zero, in accordance with the c
TSMatrix
- 实现稀疏矩阵的三元组顺序表示方法及基本操作的实现(建立、输出、转置等)。-Sparse Matrix realize the order of the triples express and realize the basic operations (create, export, transpose, etc.).
xdsyyr
- 野人与修道士问题 这是一个古典的问题.假设有n个修道士和n个野人准备渡河,但只有一条能容纳c人的小船,为了防止野人侵犯修道士,要求无论在何处,修道士的个数不得少于野人的人数(除非修道士个数为0).如果两种人都会划船,试设计一个算法,确定他们能否渡过河去,若能,则给出一个小船来回次数最少的最佳方案. 要求: (1) 用一个三元组(x1,x2,x3)表示渡河过程中各个状态.其中,x1表示起始上岸修道士个数,x2
SparseMatrixSummation
- 数据结构 1、算法思路: 先定义一个三元组,创建稀疏矩阵m和n。依次扫描A和B的行号和列号,若A的当前项的行号等于B的当前项的行号,则比较其列号,将较小列的项存入C中,如果列号也相等,则将对应的元素值相加后存入C中;若A的当前项的行号小于B的当前项的行号,则将A的项存入C中;若A的当前项的行号大于B的当前项的行号,则将B的项存入C中。 -Data Structures 1, algorithm ideas: first de
syzb
- 三元组表的建立与这个三元组表的一种转置算法-The establishment of three groups, with the three groups, a kind of transpose algorithm
xsjz
- 稀疏矩阵的三元组表的建立与它的存储算法之一-Sparse Matrix ternary groups, the establishment and one of its storage algorithm
ErChaShu
- 假设自上而下按层次,自左至右输入每个结点的一个三元组(N, P, L/R)。其中N为本结点的元素,P为其父结点,L指示N为P 的左孩子,R指示N为P的右孩子。试写一个建立二元树在内存的双链表示算法,并实现先根、中根、后根以及层序遍历算法。-Assuming top-down by the level of input from left to right each node of a triple (N, P, L/R). One N-
0410714309
- 稀疏矩阵运算器 以“带行逻辑链接信息”的三元组顺序表表示稀疏矩阵-Sparse Matrix calculator to line with the logic of the link information triple sequence tables that sparse matrix
Matrix
- 稀疏矩阵运算器 本程序要求用“带行逻辑链接信息”的三元组顺序表表示稀疏矩阵,实现两个矩阵相加、相减和相乘的运算。具体有以下几点: 1.本程序中稀疏矩阵的输入形式采用三元组表示,而运算结果的矩阵则以通常的阵列形式列出。本实验的三元组输入顺序为在行号小的优先的条件下,列号小的输入!要求输入的行数与列数不大于20,且输入三元组的结束标志为“0 0 0”。 2.程序执行过程: (1)运行后,打印出功能选项,可供选择。
sanyuanzu
- 数据结构中稀疏矩阵的存储方式——三元组,以及两个稀疏矩阵的相加及对应的三元组表示方式-Data structure in sparse matrix storage methods- Sanyuan Group, as well as the sum of two sparse matrix and the corresponding triple that way
SMatrix
- 利用三元组顺序表表示稀疏矩阵,带行逻辑链接信息。实现两个矩阵相加,相减和相乘。输入用三元组表示,输出为通常的阵列形式。-Use the order form that triples sparse matrix, with lines Logical link information. The realization of the sum of two matrices, subtract and multiply. Triples s
TSMatrix_cal
- 三元组表示的稀疏矩阵的加法,减法,乘法运算器-Triples express the sparse matrix of the adder, subtraction, multiplication device
san
- 三元组表 跟大家一起分享,才鸟级的别见笑.-Three groups, to share with everybody before a laughing stock of other birds class.