-
2.时间序列分析
1.二分查找
适用条件:查找序列已经有序
int binarysearch(int a[], int n, int x)
{
int left, right, center;
left = 0;
right = n - 1;
- 2022-03-05 08:28:07下载
- 积分:1
-
线性规划中的单纯形法,单纯形法是求解线性规划的最主要方法,程序首先确定初始可行解,如没有找到,则引入人工变量或松弛变量来求解...
线性规划中的单纯形法,单纯形法是求解线性规划的最主要方法,程序首先确定初始可行解,如没有找到,则引入人工变量或松弛变量来求解-Of linear programming simplex method, simplex method for solving linear programming are the most important methods, procedures to determine first of all, the initial feasible solution, such as not found, then the introduction of artificial variables or slack variable is used to solve
- 2022-06-27 01:49:08下载
- 积分:1
-
C经典代码大全
一些C编程语言经典编程题目,希望对大家有用。#include
int main(void)
{
unsigned int i = 0x12345678;
char*pc =(char*)&i;
printf("0x%x
", *pc);
double *pd = (double*)&i;
printf("%f
", *pd);
printf("sizeof pc = %d sizeof pd = %d
", sizeof(pc), sizeof(pd));
return 0;
}
- 2022-04-01 10:36:20下载
- 积分:1
-
manual selection of color samples in an image
manual selection of color samples in an image
- 2022-07-10 17:08:10下载
- 积分:1
-
磁盘调度
磁盘调度使用 C 代码和脚本的 Fifo算法免费下载。序列化对象使用C#是一个教程,为您提供用于序列化的方法
- 2022-03-03 09:23:02下载
- 积分:1
-
基于AVR的DS18B20函数设计,利用LCD模块显示温度变化,精度高,反应迅速。...
基于AVR的DS18B20函数设计,利用LCD模块显示温度变化,精度高,反应迅速。-AVR-DS18B20 function design based on the use of LCD modules show that the temperature changes, high precision and rapid response.
- 2022-06-26 23:10:44下载
- 积分:1
-
进制转换
2# to 16# 8# 2# 10# to 16#
2# to 16# 8# 2# 10# to 16#
2# to 16# 8#...
进制转换
2# to 16# 8# 2# 10# to 16#
2# to 16# 8# 2# 10# to 16#
2# to 16# 8# 2# 10# to 16#-2# to 16# 8# 2# 10# to 16#
2# to 16# 8# 2# 10# to 16#
2# to 16# 8# 2# 10# to 16#
2# to 16# 8# 2# 10# to 16#
2# to 16# 8# 2# 10# to 16#
- 2023-01-21 18:45:03下载
- 积分:1
-
空间5阶WENO格式 时间3阶RK格式
空间5阶WENO格式 时间3阶RK格式
- 2022-09-18 01:00:03下载
- 积分:1
-
采用有限元法计算半导体的带隙结构和波函数。
采用有限元法计算半导体的带隙结构和波函数。-using the finite element method to calculate the bandgap semiconductor structure and the wave function.
- 2022-04-09 17:06:46下载
- 积分:1
-
A*星算法Lua版
A星寻路算法Lua版
算法原理描述,百度一下一大堆,参考http://blog.sina.com.cn/s/blog_6612d09b0100ve1z.html
其实很简单,
1. 我们无法直接知道怎么到达目的地,但是我们能够知道怎么样从起始点到达相邻的格子,还能从相邻的格子再到相邻格子的相邻的格子。
2.我们不停的找相邻的格子,相邻格子的相邻格子....总有一天,我们会发现其中一个相邻的格子就是我们的目的地,于是我们找到了这条路。
3.在此基础上,我们加入 预估值来提高寻找的效率,我们总是优先寻找预估值低的那些相邻的格子。
其中 f= g+h
g 是实际耗费的值
h 是预估值,从当前位置到达目标位置所耗费的移动值,预估有几种算法,这边用的是 对角线估价法
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报 打分 发表评论 暂无评论
- 2022-08-22 01:25:50下载
- 积分:1