-
2维数组 截断 追加 测试
应用背景
二维数组的截断和追加并不像TStringList那么简单。在研究二维数组的截断和追加时,写了本例子来研究。提供给有相同问题的后来人参考,代码有点青涩,毕竟是研究算法的的demo,不喜勿喷!
关键技术
二维数组的截断和追加是一个抽象的概念,本demo把它实例化,可以给爱偷懒的程序学习者参考,不足之处欢迎拍砖。{删除动态数组指定元素的过程: 参数 arr 是数组名, 参数 Index 是要删除的索引}
procedure TForm1.DeleteArrItem(Index:Integer);
var
j:integer;
begin
if Length(MyProArr)>1 then
begin
for j := Index to Length(MyProArr)-2 do begin
MyProArr[j,0]:=MyProArr[j+1,0];
MyProArr[j,1]:=MyProArr[j+1,1];
end;
setlength(MyProArr,Length(MyProArr)-1,2);
end else
begin
setlength(MyProArr,0,2);
end;
- 2022-11-15 14:10:02下载
- 积分:1
-
矩阵连乘积的加括号方式数
资源描述给定n个矩阵{A1,…,An},其中Ai和Ai+1可乘,i=1,2,…,n-1。考察矩阵连乘积加括弧的方式数。
如四个矩阵连乘积A1A2A3A4,共有五种不同的加括弧方式:
( A1 ( A2 ( A3 A4 ) ) )
( A1 ( ( A2 A3 ) A4 ) )
( ( A1A2 ) ( A3 A4 ) )
( A1 ( A2 A3 ) A4 )
( ( ( A1 A2 ) A3 ) A4 )
输入示例:
4
输出示例:
5
- 2023-02-06 15:25:03下载
- 积分:1
-
工程问题中常用微分方程的形式建立数学模型,所以微分方程求解很有意义。本程序用Euler、改进Euler和经典公式对这类方程进行求解...
工程问题中常用微分方程的形式建立数学模型,所以微分方程求解很有意义。本程序用Euler、改进Euler和经典公式对这类方程进行求解-Engineering problems commonly used in the form of differential equations to establish the mathematical model, it makes sense for solving differential equations. This procedure used Euler, improved Euler and the classical formula of such equations to solve
- 2022-03-17 06:09:21下载
- 积分:1
-
In the learning process of digital signal processing algorithms using VC General...
在学习数字信号处理算法程序中用VC编写的几个通用算法程序。
卷积计算/DFT与FFT实现/-In the learning process of digital signal processing algorithms using VC General Algorithm for the preparation of several procedures. Convolution calculation/DFT and FFT realization /
- 2022-07-13 20:31:16下载
- 积分:1
-
一个 数学工具集
有菜单界面 单色显示
一个 数学工具集
有菜单界面 单色显示
-A mathematical tool set has a menu-based interface monochrome display
- 2022-12-18 04:10:03下载
- 积分:1
-
稀疏矩阵,非线性数据动态分类算法例子
稀疏矩阵,非线性数据动态分类算法例子-Sparse Matrix, nonlinear dynamic data classification algorithm example
- 2022-02-01 22:54:15下载
- 积分:1
-
插值程序
给入控制信号,输入输出分辨率 进行放大,分辨率例如1024 768,系统时钟为最高频率的输入时钟,里面包括双线性,还有最近领域法,两种算法的选择是通过一个电平进行控制
- 2022-09-19 13:50:03下载
- 积分:1
-
Openssl调用
E直接调用OPENSSL实现ECC,RSA,DES,AES算法例程.E directly call OPENSSL achieve ECC, RSA, DES, AES algorithm routines.
- 2022-10-30 19:10:03下载
- 积分:1
-
这个程序我用了两个月编写,功能已经和完整了,真是个好东西!好用着呢...
这个程序我用了两个月编写,功能已经和完整了,真是个好东西!好用着呢-this process I have spent two months of preparation, functions and integrity, is a good thing! Handy ability in
- 2022-12-20 12:35:03下载
- 积分:1
-
科学与工程数值计算算法(Visual Basic版)
科学与工程数值计算算法(Visual Basic版)-Science and Engineering numerical calculation algorithm (Visual Basic Edition)
- 2022-12-24 18:25:04下载
- 积分:1