-
最小不重复数问题
问题描述:给定一个数n,找出大于这个数的最小不重复数(任意相邻位数字不相同)。
程序给出了两种方法:find和find1,其中find1属于暴力法,直接从n+1开始寻找,每次加1,知道找到满足条件的不重复数为止。
第二种方法比较巧妙,将n各位数字存到一个数组a[]里,下标大小对应位数高低,比如1234,数组a[0...3]依次为1,2,3,4;从最高位开始找相邻的重复数,较低的重复位加1带进位,高位循环加进位直到无进位,低位置零;回到次高位重新寻找重复位,直到无重复位。
- 2022-05-13 23:24:34下载
- 积分:1
-
CSMA/CA算法的C语言实现
用C语言实现的CSMA/CA代码,中国科学院计算技术研究所先进测试技术实验室原创。
Institute Of Computing Technology Chinese Academic. Science
- 2022-02-04 01:40:36下载
- 积分:1
-
kalman滤波MATLAB代码
MATLAB代码kalman滤波目标跟踪.
- 2023-02-14 08:50:03下载
- 积分:1
-
平衡二叉树 代码
这份代码是一份包含了平衡二叉树主要功能模块的代码,包括平衡二叉树的建立、查找、删除等功能,对二叉树的操作:LL,RR,LR,RL旋转有详细的介绍和注释,是理解平衡二叉树的好材料。
- 2022-03-01 08:03:21下载
- 积分:1
-
快速表达式运算
快速表达式运算 - The fast expression operates
- 2022-10-06 00:55:03下载
- 积分:1
-
线性的插值算法,内涵读取文件,算法实现和写入文件。读取的文件为PARCHG,写入的文件为INSERT_DATA...
线性的插值算法,内涵读取文件,算法实现和写入文件。读取的文件为PARCHG,写入的文件为INSERT_DATA-Linear interpolation algorithm, meaning to read documents, algorithm implementation and write to a file. Read documents PARCHG, written documents INSERT_DATA
- 2022-07-14 11:15:11下载
- 积分:1
-
performance estimation of LDPC codes over BEC
本文研究了LDPC码在二进制擦除信道上的有限长性能;http://arxiv.org/abs/1309.7102
- 2022-01-21 02:07:35下载
- 积分:1
-
webrtc中提取的AEC库
webrtc中提取的AEC库,从webrtc开源项目中提取,可以使用,可以作为学习之用,现在关于开源aec算法的
代码少,这个确实还不错
- 2022-02-09 14:38:11下载
- 积分:1
-
A given voice signal amplification procedures, can enter multiples of amplificat...
一个给语音信号进行放大的程序,可以输入放大的倍数,输入放大后的语音信号。倍数是指语音的幅度,不是指能量。-A given voice signal amplification procedures, can enter multiples of amplification, the amplified voice input signal. Refers to a multiple of the range of voice, not energy.
- 2022-08-17 20:36:34下载
- 积分:1
-
这opennl,图书馆很容易构造和求解稀疏线性系统。
This OpenNL, a library to easily construct and solve sparse linear systems.
* OpenNL is supplied with a set of built-in iterative solvers (Conjugate gradient,BICGSTAB, GMRes) and preconditioners (Jacobi, SSOR).
* OpenNL can also use other solvers (SuperLU 3.0 is supported as an OpenNL extension,MUMPS will be supported in a future version)-This is OpenNL. a library to easily construct and solve sparse l inear systems.* OpenNL is supplied with a set of built-in iterative solvers (Conjugate gradie nt, Application of BICGSTAB. GMRes) and preconditioners (Jacobi, SSOR).* OpenNL can also use other solvers (Super rLU 3.0 is supported as an OpenNL extension, MUMPS will be supported in a future version)
- 2023-07-05 19:45:04下载
- 积分:1