-
这是一些数值算法的源程序,包括非线形方程的解法。(二分法,牛顿法)。线性代数方程组数值解法(包括,消去法,迭代法)...
这是一些数值算法的源程序,包括非线形方程的解法。(二分法,牛顿法)。线性代数方程组数值解法(包括,消去法,迭代法)-This is some numerical algorithm of the source, including non-linear equations method. (Dichotomy, Newton). Linear algebra equations Numerical Solution (including, elimination, iteration)
- 2022-05-19 06:04:19下载
- 积分:1
-
求解非线性方程组的一组源代码,FORTRAN90.用于解决N个未知数,N
求解非线性方程组的一组源代码,FORTRAN90.用于解决N个未知数,N-1个方程.-Solving nonlinear equations of a set of source code, FORTRAN90. For settlement of N unknown, N-1 equations.
- 2023-03-13 04:40:03下载
- 积分:1
-
This is the classic five source language c
这是五个经典的c语言源程序-This is the classic five source language c
- 2022-05-12 13:33:04下载
- 积分:1
-
Using VisualC++ implementation of the pseudo
使用VisualC++实现的伪逆矩阵的计算方法,Dlg编程。-Using VisualC++ implementation of the pseudo-inverse matrix method of calculation, Dlg programming.
- 2022-03-31 00:28:46下载
- 积分:1
-
一、前言
24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为...
一、前言
24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为输。
二、分析
用计算机来算这个题,搜索速度当然有很大优势,我编程喜欢考虑通用一点,不限制输入数量和结果数,甚至不限制运算符数量。这样组合数就很大,如果输入数比较多,则搜索时间会非常长。
我用两个方法来提高搜索速度:一、是大家都能考虑到的重复搜索问题,比如1,2,3和2,3,1所有的组合情况是相同的,我只搜索使用递增序的数组,则可以降低一个组合数的数量级别;二、使用动态规划中的备忘录方法,比如你计算出2和3所有可能的计算结果,则他们与4结合的时候,要用到,与1结合的时候,也要用到,使用备忘录,可以只计算一次,大大降低运算复杂度。
三、设计
整体设计:分别设计4个类:游戏、表达式、运算、分数,各司其责,结构清晰,易于扩展。
-First, the preamble
24-point game is a common game, give the title are four integer requiring answer within a specified period of time in a four calculations give the expression, just use that the integral of the time, results for the 24, beyond the time to lose.
Second, analysis
Use computers to count the title, the search speed of course, there is a great advantage, I enjoy taking generic programming that does not restrict the importation of the volume and the number of results, and even limiting the number of operators. So on a large number of combinations, if you
- 2022-04-21 18:17:05下载
- 积分:1
-
FORTRAN语言,正交曲线网格生成过程中的使用
采用Fortran语言的正交曲线网格生成程序-Fortran language, the use of orthogonal curvilinear grid generation process
- 2022-10-18 22:50:03下载
- 积分:1
-
随机生成迷宫并绘出路径
资源描述C语言简单迷宫小程序,随机生成迷宫并求解绘图
- 2023-04-06 13:05:03下载
- 积分:1
-
高性能计算高斯消去解方程组c++程序(复杂度 n^3
高性能计算高斯消去解方程组c++程序(复杂度 n^3-high-performance computing solutions Gaussian Elimination equations c (n ^ complex 3
- 2022-01-26 00:03:00下载
- 积分:1
-
打破数字
此代码可用于打破数字。它的一个例子: 让说,用户输入"561365"作为输入,现在程序将放置在数组中的每个位数的这一数字。所以以后你可以做任何需要使用此 number 位数的操纵。
- 2022-08-21 13:16:20下载
- 积分:1
-
This is a book commonly used algorithms and model introduction, there are BP net...
这是书上的常用算法和模型介绍,有BP网络的C语言实现,HMM的C语言实现,失量量化的C语言实现。-This is a book commonly used algorithms and model introduction, there are BP networks realize the C language, HMM of the C language, loss of the C language to quantify.
- 2022-01-31 08:49:34下载
- 积分:1