-
一个求解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
-
单链表c实现
数据结构最基本的算法,单链表的c实现,包括创建,删除,修改,增加成员等操作
- 2022-02-26 23:55:25下载
- 积分:1
-
数值分析常用算法编程,文件不是很大,可能有一些错误,大家原谅...
数值分析常用算法编程,文件不是很大,可能有一些错误,大家原谅-numerical analysis algorithm commonly used programming, documentation is not great, there may be some mistakes, we forgive
- 2023-07-10 19:45:03下载
- 积分:1
-
滤波求大气风暴轴EKE
采用滤波方法来求取地球大气风暴轴EKE的一种算法,国内外已经有专家进行过这方面的研究,这是个人自编的算法代码
- 2022-03-07 18:26:19下载
- 积分:1
-
svd实现的开源项目
Svd Feature包含一个很灵活的Matrix Factorization推荐框架,能方便的实现SVD、SVD++等方法, 是单模型推荐算法中精度最高的一种。SVDFeature代码精炼,可以用相对较少的内存实现较大规模的单机版矩阵分解运算。
另外含有Logistic regression的model,可以很方便的用来进行ensemble运算
- 2022-01-21 00:47:58下载
- 积分:1
-
MWC飞控2.3源码
MWC是完全开源的多旋翼飞行器飞控,基于Arduino平台。飞控分为三轴模式和六轴模式,可根据个人喜好自主配置。支持多种陀螺仪和加速度计,同时支持电子罗盘和GPS。整个工程结构清晰,IMU算法简洁易懂。
- 2023-03-31 04:25:05下载
- 积分:1
-
这几天学VC界面编程,在VC在线上狂看教程,觉得有所长进,于是把以前的Java代码用VC改写了一下。问题还是那个老掉牙的问题,八皇后问题,老归老,但我很喜欢...
这几天学VC界面编程,在VC在线上狂看教程,觉得有所长进,于是把以前的Java代码用VC改写了一下。问题还是那个老掉牙的问题,八皇后问题,老归老,但我很喜欢-VC these days learn programming interface, the VC frenzy see online tutorial, some feel that complacency. So, before the Java code with VC rewritten a bit. Problems or those long-standing problems, 8 Queen"s problems and old to the old, but I like
- 2022-01-26 15:53:22下载
- 积分:1
-
this mobile robot program including fuzzy control system, keypad, ultrasonic pin...
this mobile robot program including fuzzy control system, keypad, ultrasonic ping)), etc-this is mobile robot program including fuzzy control system, keypad, ultrasonic ping)), etc
- 2022-12-02 14:45:03下载
- 积分:1
-
HMM 算法
Contents of this directory
PROGRAMS
* Simple HMMs *
simpledemo.m - Simple demo of HMM code
hmm.m - hmm code
hmm_cl.m - code for calculating likelihood for an hmm
* Factorial HMMs *
fhmm.m - factorial HMM code (exact algorithm -- very slow)
- 2022-04-14 22:21:46下载
- 积分:1
-
限制人口增长的分歧
有限的人口可视化模型增长,显示著名的最著名的分叉图。蛛网迭代图也包括在内。
- 2022-01-25 22:57:28下载
- 积分:1