文件名称:24
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
神奇24游戏的玩法是,由计算机随机产生4个自然数,玩家利用加减乘除和加括号,将4个数组成结果等于24的四则运算算式。在大多数情况下这个问题都有解,这就是“神奇”所在之处。通常的解法都是采用穷举法,对所有可能的算式进行求解,然后判断结果是不是24。问题的难点在于如何生成这所有的算式,由于括号的缘故,使问题变得复杂了。一种办法是将中缀表达式转化为后缀表达式,转入对后缀表达式的分析。由于后缀表达式的特点,后缀表达式的分析和求解都比较容易实现,这样就简化了问题的求解。-The magic 24 games played four natural numbers randomly generated by the computer players using addition, subtraction processing parentheses, will be composed of 4 numbers the result is equal to 24 four computing formula. In most cases, this problem has a solution, this is the " magic" of where. The usual solutions are based on exhaustive method, to solve all possible formulas, then the judge is not 24. The difficulty of the problem is how to generate all of this formula, make the problem even more complicated due to the brackets sake. One approach is to infix expression into postfix expression into postfix expression analysis. Due to the the suffix expression of characteristics, the postfix expression analysis and solving are relatively easy to implement, thus simplifying the problem solving.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
神奇24游戏
..........\.classpath
..........\.project
..........\测试.java
..........\系统常量表.java
..........\表达式.java
..........\表达式生成器.java
..........\词法分析器.java
..........\词法分析器.class
..........\表达式生成器.class
..........\表达式.class
..........\系统常量表.class
..........\测试.class
..........\神奇24游戏.java
..........\神奇24游戏.class
..........\神奇24游戏.htm
..........\神奇24游戏Applet.java
..........\神奇24游戏Applet.class
..........\java.policy.applet
..........\使用说明.txt