﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-qinzuoyan-最新评论</title><link>http://www.cppblog.com/qinzuoyan/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Sun, 12 Dec 2010 16:20:07 GMT</pubDate><lastBuildDate>Sun, 12 Dec 2010 16:20:07 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 一道笔试题 - strrep()函数的实现[未登录]</title><link>http://www.cppblog.com/qinzuoyan/archive/2010/06/11/117548.html#117626</link><dc:creator>expter</dc:creator><author>expter</author><pubDate>Fri, 11 Jun 2010 02:58:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2010/06/11/117548.html#117626</guid><description><![CDATA[KMp不就行了吗？<img src ="http://www.cppblog.com/qinzuoyan/aggbug/117626.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">expter</a> 2010-06-11 10:58 <a href="http://www.cppblog.com/qinzuoyan/archive/2010/06/11/117548.html#117626#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2010/05/06/93306.html#114689</link><dc:creator>zt</dc:creator><author>zt</author><pubDate>Thu, 06 May 2010 10:48:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2010/05/06/93306.html#114689</guid><description><![CDATA[通过信息熵来看，最少的次数应该是3.7次。所以还是有些开发的空间。。求大牛啊。<img src ="http://www.cppblog.com/qinzuoyan/aggbug/114689.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">zt</a> 2010-05-06 18:48 <a href="http://www.cppblog.com/qinzuoyan/archive/2010/05/06/93306.html#114689#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93451</link><dc:creator>左言</dc:creator><author>左言</author><pubDate>Sat, 15 Aug 2009 12:05:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93451</guid><description><![CDATA[@空明流转<br><br>直接枚举法，你说的是对5040种排列依次猜测吗。。。？最坏情况下猜测次数可能5040次吧。或者你有更好的办法吗？<br><img src ="http://www.cppblog.com/qinzuoyan/aggbug/93451.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">左言</a> 2009-08-15 20:05 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93451#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93402</link><dc:creator>凡客诚品</dc:creator><author>凡客诚品</author><pubDate>Sat, 15 Aug 2009 03:35:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93402</guid><description><![CDATA[没搞那么复杂。。。  <img src ="http://www.cppblog.com/qinzuoyan/aggbug/93402.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">凡客诚品</a> 2009-08-15 11:35 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93402#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93389</link><dc:creator>空明流转</dc:creator><author>空明流转</author><pubDate>Fri, 14 Aug 2009 22:54:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93389</guid><description><![CDATA[我当年就是直接枚举法的，没搞那么复杂。。。<img src ="http://www.cppblog.com/qinzuoyan/aggbug/93389.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">空明流转</a> 2009-08-15 06:54 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/15/93306.html#93389#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93335</link><dc:creator>左言</dc:creator><author>左言</author><pubDate>Fri, 14 Aug 2009 08:06:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93335</guid><description><![CDATA[@东坡_居士<br><br>我觉得不应当考虑概率，而应当考虑在任意时刻，可行解集合里任何数都有可能是正确结果。实际上就是在一个状态转移图中，任何可行的路径都有可能沿着走下去，每选择一个数，就走进了一个分支。<br><img src ="http://www.cppblog.com/qinzuoyan/aggbug/93335.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">左言</a> 2009-08-14 16:06 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93335#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93332</link><dc:creator>东坡_居士</dc:creator><author>东坡_居士</author><pubDate>Fri, 14 Aug 2009 07:55:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93332</guid><description><![CDATA[@左言<br><br>恩，是这样，我现在觉得能存下来，不过需要hash一下，时间上应该还行，一两个小时我也认了~呵呵~<br><br>还有一个问题是这样，在一个可行解集合里，每一个数的概率是一样的吧？<img src ="http://www.cppblog.com/qinzuoyan/aggbug/93332.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">东坡_居士</a> 2009-08-14 15:55 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93332#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93331</link><dc:creator>左言</dc:creator><author>左言</author><pubDate>Fri, 14 Aug 2009 07:49:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93331</guid><description><![CDATA[@东坡_居士<br>上面公式还可以进一步修改一下：<br>t(F) = min{ t( F- conf(f) ) + 1, for all f belongs to F}， 其中conf(f)指与f冲突的集合（每一种返回结果就对应一个冲突集，所以复杂度又上升了）。<img src ="http://www.cppblog.com/qinzuoyan/aggbug/93331.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">左言</a> 2009-08-14 15:49 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93331#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93330</link><dc:creator>左言</dc:creator><author>左言</author><pubDate>Fri, 14 Aug 2009 07:44:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93330</guid><description><![CDATA[@东坡_居士<br>我猜测你也在考虑“动态规划”方法。<br>我考虑过“动态规划”算法，递推公式： t(F) = min{ t(F-f)+1, for all f belongs to F}, 其中 F 是当前可行集，t(F)为该可行集 F 条件下猜出结果的次数，f 为 F 中的一个可行排列。<br>但是我没有编程实现，因为担心复杂度太高运行不完。但是可以保证这样能得到最优解。<br>贪心算法得到的应当不是最优解，但是近似最优解，而且也是可以接受的。<img src ="http://www.cppblog.com/qinzuoyan/aggbug/93330.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">左言</a> 2009-08-14 15:44 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93330#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 文曲星“猜数字”游戏的计算机模拟 —— 算法分析与实现</title><link>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93326</link><dc:creator>东坡_居士</dc:creator><author>东坡_居士</author><pubDate>Fri, 14 Aug 2009 07:32:00 GMT</pubDate><guid>http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93326</guid><description><![CDATA[@左言<br>恩，我理解错了~<br><br>我之前想的新的思路是这样：<br><br>因为问题的根源都在于我们怎样评价一个状态的好坏，我们现在都用数字的多少区评价，数字越多越糟糕。这个评价还是很初级简单的。<br><br>显然，既然求最小步数，那么最准确的评价就是，这个状态可以（平均、最坏）多少步得到解。<br><br>但是，这个评价标准需要递归（太慢，我测试9876用了十几分钟），或者记录状态（太大存不下）<br><br>我现在在想这个的优化~希望在可接受时间内跑出所有解~<img src ="http://www.cppblog.com/qinzuoyan/aggbug/93326.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/qinzuoyan/" target="_blank">东坡_居士</a> 2009-08-14 15:32 <a href="http://www.cppblog.com/qinzuoyan/archive/2009/08/14/93306.html#93326#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>