-
电影票
图书馆管理系统 C+ + * 递归程序为线性搜索 * /#includeint 线性 (int [],int,int) ;无效的主要 (){int a [20],pos = 1,n,k,我 ;clrscr() ;printf ("nEnter n 值:") ;scanf ("%d",& n) ;printf ("nEnter 元素的数组:") ;为 (我 = 0 ; 我 < n; i + +)scanf ("%d"& a[i]) ;printf ("n 输入要搜索的元素:") ;scanf ("%d"& k) ;pos=linear(a,n,k) ;if(pos!=-1)printf ("n 搜索成功,发现位置 %d 处的元素",pos) ;其他printf ("搜索失败,找不到元素") ;残培 () ;}int 线性 int k int n int []){int ;为 (我 = n-1 ; 我 > = 0; 我 — —){if(a[i]==k)return(i) ;其他{n = n-1 ;return(linear(a,n,k)) ;}}返回-1 ;}
- 2022-02-02 00:00:53下载
- 积分:1
-
这是常用的数值算法和图论算法 是用伪代码描述的 里面有对算法的详细讲解...
这是常用的数值算法和图论算法 是用伪代码描述的 里面有对算法的详细讲解-This the commonly used algorithms and numerical algorithms of graph theory is used pseudo-code description of the inside of the algorithm in detail on the
- 2022-04-15 02:42:27下载
- 积分:1
-
链表的实现及操作
资源描述使用C语言实现了链表及其常用的操作函数,包括链表添加节点函数、释放所有节点函数、获取节点个数函数、节点排序函数、查找节点函数、修改节点函数、链表逆转函数、打印所有节点函数等。
- 2022-01-26 06:51:56下载
- 积分:1
-
GMP is a free library for arbitrary precision arithmetic, operating on signed in...
GMP是计算任意精度的数学库, 包括支持整数,有理数和浮点. GMP包括大量的接口函数.-GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.
- 2022-02-25 15:30:33下载
- 积分:1
-
DPCM编码的联合信源信道译码,这是一个很重要的benchmark程序
DPCM编码的联合信源信道译码,这是一个很重要的benchmark程序-DPCM coding joint source channel decoder, which is a very important benchmark procedures
- 2022-05-25 02:18:57下载
- 积分:1
-
C++作业,实现vector
C++作业,实现vector-C operations and achieve vector
- 2022-08-21 18:39:09下载
- 积分:1
-
基于opencv的手势识别
基于opencv的手势识别,使用了camshift算法.对运动物体的跟踪:如果背景固定,可用帧差法 然后在计算下连通域 将面积小的去掉即可如果背景单一,即你要跟踪的物体颜色和背景色有较大区别 可用基于颜色的跟踪 如CAMSHIFT 鲁棒性都是较好的如果背景复杂,如背景中有和前景一样的颜色 就需要用到一些具有预测性的算法 如卡尔曼滤波等 可以和CAMSHIFT结合 ...
- 2022-04-09 20:17:01下载
- 积分:1
-
这个应该是经典编程里面的经典算法实现的八皇后问题.也通过了测试.完全达到设计要求.
这个应该是经典编程里面的经典算法实现的八皇后问题.也通过了测试.完全达到设计要求.-This should be a classic of the classic programming algorithm inside the eight Queen s problems. Also passed the test. Fully meet the design requirements.
- 2022-01-22 07:50:23下载
- 积分:1
-
Genetic Algorithm, is an evolutionary algorithm, the basic principle is to emulate the biosphere in
遗传算法是一种进化算法,其基本原理是模仿生物圈中“物竞天择、适者生存”的进化规律。该方法将遗传算法的参数编码为染色体,再利用迭代的方式,如选择、交叉和变异等算子来交换染色体种群的信息,得到优化目标在染色体上的行;
- 2023-08-30 21:25:03下载
- 积分:1
-
菜单 com teclado matricial 3 x 4 e pic
埃斯特角 projeto mostra 科摩 usar um teclado matricial 3 x 4 com pic 没有 ccs,criação de ilustra um 菜单 de opções usando (开关箱) 段控制 de motores de 帕苏、 com 帕苏 completo、 微帕苏等
- 2022-02-25 00:24:41下载
- 积分:1