-
编译原理与实践的课程设计---compile Cminus
资源描述这个文件是编译原理课程设计的实验代码,这段代码中包括了词法分析以及语义树的生成,工程的话用vs2013打开,如果版本低的话,直接把里面的头文件与源文件拷出来在相关的c语言开发环境里建个新的工程就行了,里面有一个例子,直接跑就行了。
- 2023-06-21 10:25:04下载
- 积分:1
-
(用Euler法和改进的Euler法求解,用三阶Adams外插法及内插法求解...
(用Euler法和改进的Euler法求解,用三阶Adams外插法及内插法求解
-(Using Euler method and the improved Euler Method, using third-order Adams extrapolation method and interpolation method for solving
- 2022-12-16 17:40:03下载
- 积分:1
-
数据结构-算法-C语言-Demo
#ifndef _BINARY_TREE_H_INCLUDED#define _BINARY_TREE_H_INCLUDED#include #include templatestruct Bintree_node {T element;Bintree_node* lchild;Bintree_node* rchild;explicit Bintree_node(const T& elem=T(), Bintree_node* lchd=0, Bintree_node* rchd=0): element(elem), lchild(lchd), rchild(rchd) {}};templateclass Binary_tree {public:typedef Bintree_node* PBtn;Binary_tree();virtual ~Binary_tree();void clear();int depth() const;int size() const;virtual PBtn find(const T& elem) const=0;virtual void insert(const T& elem)=0;virtual void erase(const T& elem)=0;virtual void print(std::ostream& output) const=0;void print_tree(std::ostream& output) const;protected:
- 2022-01-29 04:39:50下载
- 积分:1
-
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是...
正整数x 的约数是能整除x 的正整数。正整数x 的约数个数记为div(x)。例如,1,2,5,10 都是正整数10 的约数,且div(10)=4。设a 和b 是2 个正整数,a≤b,找出a 和b之间约数个数最多的数x。
对于给定的2 个正整数a≤b,编程计算a 和b 之间约数个数最多的数。
数据输入
输入数据由文件名为input.txt的文本文件提供。文件的第1 行有2 个正整数a和b。
结果输出
程序运行结束时,若找到的a 和b 之间约数个数最多的数是x,将div(x)输出到文件output.txt中。
输入文件示例 输出文件示例
input.txt output.txt
1 36 9
-Positive integer x can be about a few of the positive integer x divisible. Positive integer x the approximate number recorded as the number of div (x). For example, 1,2,5,10 are about 10 positive integer number, and div (10) = 4. Set a and b are two positive integers, a ≤ b, to find a and b between about a few number of the largest number of x. For a given two positive integers a ≤ b, Programming calculated a and b between about a few number of the largest number. Data entry input data from the document text file named input.txt provide. File line 1 has two positive integers a and b. The results run the end of the output, if found between a and b of about a few number o
- 2023-04-13 05:20:03下载
- 积分:1
-
复式河道水面线推求程序,开发平台Fortran。
复式河道水面线推求程序,开发平台Fortran。-penthouse river water line calculation procedures, Fortran development platform.
- 2023-03-23 02:55:04下载
- 积分:1
-
BP网络的C/C++实现,含有详细代码和例子,适合初学者
应用背景人工神经网络(ANN)中关于反向传播算法的内容,相比单个感知器而言,采用多层网络的反向传播算法能表示出更多种类的非线性曲面,整个神经网络可以分成三层:输入层,隐藏层,输出层,通过加权线性变换,层与层之间的传递,最终得到输入层的实数值。关键技术
本人根据附件里面的文章编写的反向传播算法代码,里面含有详细的代码注释和文章例子, 可以让初学者深刻理解反向传播算法,适合初学者学习。给出BP算法训练的例子,对单个样本的训练的情况进行编写和验证。
//输入层到隐层的过程
float fNetj[m];
for (int j= 0;j < m; j++){
fNetj[j] = fTheta[n][j]; //这里权值矩阵最后一列是偏置,偏置×1还是偏置,所以直接加上,
//后面就不用乘了
for(int i = 0;i < n; i++){ //得到netj 的值 netj= X^V
fNetj[j] +=fInputdata[i]*fTheta[i][j];
}
fMidResult[j] = 1/(1 + exp(-fNetj[j]));
//cout
- 2022-08-03 01:10:12下载
- 积分:1
-
The Simulation of BER of QDPSK
这个文件是用来模拟QDPSK的误码率的。结果被写入一个txt文件,然后您可以将其导入matlab。
- 2022-02-12 18:16:28下载
- 积分:1
-
Matlab calculated using the various features of photonic crystals parameters. A...
利用matlab计算光子晶体的各种特征参量。
一共五个希望对大家有所帮助。-Matlab calculated using the various features of photonic crystals parameters. A total of five people want to help.
- 2022-07-08 11:24:52下载
- 积分:1
-
另一种高斯消去法.zip
另一种高斯消去法.zip-a Gaussian Elimination Act. Zip
- 2022-04-24 04:52:03下载
- 积分:1
-
on several spline interpolation algorithm classic
关于多次样条插值的经典算法-on several spline interpolation algorithm classic
- 2022-03-25 04:31:35下载
- 积分:1