-
贪吃蛇游戏
对贪吃蛇游戏用VC++进行实现,包含了游戏里的主要功能,加入了关卡设置。
- 2022-03-20 23:58:42下载
- 积分:1
-
BP神经网络的非线性系统建模--非线性函数的拟合
通过一个简单是二元二次函数,实现bps神经网络的非线性拟合,逼近真实值。非常适合初学者。
- 2022-02-09 16:21:35下载
- 积分:1
-
fortran程序,迭代常微分方程求解器,包括源代码、使用说明。...
fortran程序,迭代常微分方程求解器,包括源代码、使用说明。-fortran program, iterative solver of ordinary differential equations, including source code, use the instructions.
- 2022-01-25 14:54:41下载
- 积分:1
-
求矩阵的逆矩阵
求某矩阵的逆矩阵-find the inverse matrix of a matrix
- 2022-07-01 14:59:57下载
- 积分:1
-
delphi-crypto
厌倦了使用大型库,比如OpenSSL,
- 2022-03-18 03:04:30下载
- 积分: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
-
用动态规划解矩阵连乘问题
用动态规划解矩阵连乘问题-use dynamic programming solution matrix continually multiply problems
- 2022-07-01 22:07:17下载
- 积分:1
-
conver the data to absolute value
conver the data to absolute value
- 2022-02-12 17:47:28下载
- 积分:1
-
C语言实现AES
Project作业,C语言实现AES算法,作业要求更改S-BOX,并输出每一个round的内容. 部分代码借鉴了网友的东西。
编写的很简单,给大家看一看,适合新手。希望大家能提出宝贵意见!
- 2023-02-10 03:45:03下载
- 积分:1
-
万历年程序简单可读可改
资源描述本程序是大一时候写的一些小程序,这里是万历年的基本算法,其中谭浩强书中经典的闰年算法,可以供初学者学习,练习,更改。
- 2022-10-19 14:05:04下载
- 积分:1