-
一个求解Josephus问题的函数
#include
#include
#define NULL 0
#include
typedef struct Lnode
{
int data;
struct Lnode *next;
}Josephus;
void CreateList(Josephus*&L,int n)//建立循环链表
{
int i;
Josephus *p,*s;
s=(Josephus*)malloc(sizeof(Josephus));
s->data=1;
L=p=s;
for(i=2;idata=i;
p->next=s;
p=s;
}
p->next=L;
}
void DeleteList(Josephus*&L,Josephus*p,Josephus*q)
{
q->next=p->next;
free(p);
}
void Josephus1(Josephus*&L,int s,int m)
- 2022-01-27 23:12:59下载
- 积分:1
-
Runge
龙格-库塔法是工程中常用的求解微分方程的一种方法.而且具有四阶精度,因此应用很广泛.改程序给出了其源代码.-Runge- Kutta method is commonly used in engineering solving a differential equation methods. But with four bands precision, it is widely used. Changed its procedures is the source code.
- 2022-05-18 08:57:06下载
- 积分:1
-
这个程序有别于已经做好exe文件的2
这个程序有别于已经做好exe文件的2-8-10-16进制转换程序而是可以被其他程序调用,或简单地用ctrl c,来复制其中一段至目标程序的源代码-have made exe files 2-8-10-16 base for the conversion process, but the other procedures can be called, or simply use the ctrl c, to replicate some of which target program"s source code
- 2022-02-01 06:25:30下载
- 积分:1
-
0/1 knapdack
使用合并清除方法的0/1背包
- 2022-08-31 21:05:03下载
- 积分:1
-
单舵机实验
单舵机实验,c语言,STC51单片机控制单个数字舵机,讲述舵机原理, 软件仿真PWM控制数字舵机。
- 2022-12-12 16:35:03下载
- 积分:1
-
矢量控制
基于TMS320F2812的永磁同步电动机SVPWM空间矢量控制算法实现的源代码,
- 2022-08-25 23:36:59下载
- 积分:1
-
OpenCV Skin Detector with C#
- 2023-04-07 02:15:03下载
- 积分:1
-
邻结表存储的无向图的建立及遍历输出(包括深度优先与广度优先搜索)...
邻结表存储的无向图的建立及遍历输出(包括深度优先与广度优先搜索)- The neighbour ties the table to save non- (first first searches
to the chart establishment and the calendar output including depth
with breadth)
- 2022-04-27 05:15:49下载
- 积分:1
-
OpenCV非线性滤波示例程序
我们用轨迹条来控制滤波器,来动态得到不同滤波效果1.已将dll打包到Release文件夹下,运行Release文件夹中的exe可以直接看到运行结果.2.源代码运行需要进行OpenCV+VS开发环境的配置。我是使用编写环境:Visual Studio 2010写作当前代码时配套使用的OpenCV版本: 2.4.8
- 2022-09-24 08:00:02下载
- 积分:1
-
卡尔曼滤波算法,卡尔曼滤波算法及其实现。C语言…
Kalman滤波器,卡尔曼滤波器算法说明及其实现。C语言编写的函数,可以直接调用。-Kalman filter, the Kalman filter algorithm note and its realization. C language function can be called directly.
- 2022-03-02 16:16:48下载
- 积分:1