文件名称:24

  • 所属分类:
  • 棋牌游戏
  • 资源属性:
  • [MacOS] [Java] [源码]
  • 上传时间:
  • 2013-01-07
  • 文件大小:
  • 19kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • l*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org