-
实现二分法求解方程。编写并使用以下函数:
double SolveRoot(double(*pf)(double x),double a,double b,...
实现二分法求解方程。编写并使用以下函数:
double SolveRoot(double(*pf)(double x),double a,double b,int n)
这里,pf指向一个函数f,f用来定义要求解的方程f(x)=0,a和b是未知解x的上下界(即a
- 2022-05-10 10:45:06下载
- 积分:1
-
描述问题描述:给定一个包含只有数[ 0 ]9 ]…
描述
问题描述:
给定一个只包含数字[0..9]的字符串,求使用字符串中的某些字符,构建一个能够整除15的最大的整数。
注意,字符串中的每个字符只能使用一次。
编程任务:
求由给定字符串构建的能够整除15的最大整数。-Description of the problem description: Given a contain only numbers [0 .. 9] of the string, seeking to use some of the characters in the string, one can build the largest integer divisible by 15. Note that the string for each character can only be used once. Programming task: seeking from the given string that can build the largest integer divisible by 15.
- 2022-03-31 23:20:56下载
- 积分:1
-
本人上传的是用分治法实现的大整数算法,采用的是数组形式。...
本人上传的是用分治法实现的大整数算法,采用的是数组形式。-I uploaded is to use divide and conquer to achieve a large integer arithmetic, using the array form.
- 2023-04-07 00:40:03下载
- 积分:1
-
改进后的算法大大减少了对于那些运动矢量为零的块的搜索冗余,同时对于运动比较剧烈的块直接进入大范围搜索。这样即提高了搜索效率,又不会使搜索结果陷入局部最优。...
改进后的算法大大减少了对于那些运动矢量为零的块的搜索冗余,同时对于运动比较剧烈的块直接进入大范围搜索。这样即提高了搜索效率,又不会使搜索结果陷入局部最优。-improved algorithm greatly reduced for those zero motion vector search block redundancy, Meanwhile, more intense campaign of direct access to block large-scale search. That would improve the efficiency of search, the search results will not find the global optimum.
- 2022-08-24 07:28:16下载
- 积分:1
-
SQL数据库基本操作源码
步骤1:创建computer.mdb数据库,查找其中的CPU表,并将上市时间介于2009-1-1到2009-12-31的所有CPU产品按表格形式输入;
步骤2:访问computer.mdb数据库,查找其中的CPU表,并将上市时间介于2009-1-1到2009-12-31的所有CPU产品按表格形式输出;
步骤3:使用"Dim objAdapt As New OleDbDataAdapter(strcmd,objCon)"创建了DataAdapter对象;
步骤4:SQL查询命令实现对computer.mdb数据库中的显示器表进行查询,支持用户按显示器的常见属性如“型号”、“供应商ID”、“品牌类别ID”、“尺寸”、“分辨率”“单价”等进行检索。
步骤5:自定义类Book、Publication,并在page_load过程中引用了Book和Publication类中的成员;
步骤6:关闭数据库;
附SQL求自然对数小程序。
- 2023-07-04 06:10:03下载
- 积分:1
-
程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带...
程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带上的一个存储方案,使得能够在磁带上存储尽可能多的程序。 编程任务: 对于给定的n个程序存放在磁带上的长度,编程计算磁带上最多可以存储的程序数。 数据输入:由文件input.txt给出输入数据。第一行是正整数n,表示文件个数。接下来的1 行中,有n 个正整数,表示程序存放在磁带上的长度。 结果输出: input.txt output.txt 6 50 5 2 3 13 8 80 20 -program storage problem : There n procedures (1,2, ..., n) to be stored in the length of the L tape. I kept in the proceedings on the tape length is Li, 1 i n storage procedures to seek to establish that n procedures on tape storage of a program that allows the tape to store as much as possible the procedure. Programming tasks : to the n procedures stored in the tape length, calculated programming on tape can store up to the number of procedures. Data input : from the document input.txt given input data. The first line is a positive integer n, said the document number. Following a visit, n is an integer, said procedures stored on tape length. Results output : input.txt output.txt 6 50 5 2 3 13 8 80 20
- 2023-01-10 04:30:04下载
- 积分:1
-
经曲的字符串匹配模糊搜索算法
思想不是本人的,但程序是本人编写的...
经曲的字符串匹配模糊搜索算法
思想不是本人的,但程序是本人编写的-By the song
- 2022-05-08 01:05:57下载
- 积分:1
-
1、读入城市结点数据 */
/* 2、邻接矩阵初始化:所有元素赋Infinity, */
/* 对角线元素赋0 */
/* 3、读入城市间边...
1、读入城市结点数据 */
/* 2、邻接矩阵初始化:所有元素赋Infinity, */
/* 对角线元素赋0 */
/* 3、读入城市间边的数据,转换为邻接矩阵的数据 */
/* 4、路径矩阵初始化,若arc[i][j]
- 2022-10-03 09:55:03下载
- 积分:1
-
dormitories
数据结构与算法里,陈列馆中机器人看守问题。-dormitories
- 2022-12-29 11:50:04下载
- 积分:1
-
平滑转弯走迷宫
顺滑转弯,可以极大程度上减少电脑鼠在迷宫转弯时的损耗时间。本设计讨论电脑鼠底层驱动算法中有关电脑鼠
转弯部分(90度转弯)的改进算法,该方法改进了以往在电脑鼠转弯过程中首先对左右两个电机同时制动,
然后一个电机正向转动,一个反向转动,从而形成电脑鼠转弯过程的传统方法。
本设计所用的方法是在转弯过程中电机不停转,在转弯过程中让一个电机处于减速状态,
另一个处于加速状态(但不停机),然后调整步进电机的步数,使两个电机同时前向转动,
接着调整步进电机在转弯时的步数,待转弯结束后再使电机处于加速状态,并进入前进状态
- 2022-01-30 15:52:34下载
- 积分:1