so have you written a program attack fly-chess? that would be fun.
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 1 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:吴永铮 (等级:8 - 融会贯通,发帖:2078) 发表:2007-09-26 19:24:03  楼主  关注此帖评分:
Is there any way to guess a computer generated random number?Initiation: When playing fly-chess on the net. I start thinking is it possible to predicate the next dice. Notation: Given a PRNG, it must have a cycle. Let the function being f(), and the period being T. Usually, the output of the PRNG are normalized. Let the normalization function being g(), and the cardinality of the normalized numbers being T'. eg. To simulate a dice, let f() being the c function rand(), let g(x)=x%6. T~=2^31, T'=6. Problem definition: 1. Given a sequence produced by f(): , determine the subsequent xs: . 2. Given a sequence produced by gf(): , determine the subsequent x's: . If we have access to the black box. i.e. f() or gf(). Brute force is possible. 1. We may call f() until it matches (there is one and only one match), then we can get the rest easily. The efficiency is determined by the complexity of f() and the cycle T. 2. We may call gf() until it matches (there may be many matches), we can get the r (more...)
so have you written a program attack fly-chess? that would be fun.
Put your OWN COOL signature here!
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 求学狮城 | 返回上一页 | 本主题共有 1 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码