由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - Pseudorandom Number Generator question
相关主题
[转载] 有人在firstandsecond.com买过书吗?questions about a NP-hard problem
[转载] Automatic CS Paper Generator[转载] C++ / Java textbook?
帮忙下载一篇paperWhy I think the paper is junk, but it still gets good simulation result?
Whittaker-Shannon-Kotelnikov (W.S.K.) sampling theorem ref.?phd找工业界的工作编程重要吗?
概率题目一道~~~computer forensics resources
编程语言选择问题CS课本
Chomsky–Schützenberger theorem(zz)谁知道这1是什么问题
Re: [转载] 最好的max-weighted bipartite match请求推荐一本machine learning的书
相关话题的讨论汇总
话题: generator话题: number话题: what话题: xn
进入CS版参与讨论
1 (共1页)
s******n
发帖数: 34
1
what is the maximum period obtainable from the following generator?
Xn+1=(aXn) mod m, m=16
what should be the value of a?
what restrictions are required on the seed?
anyone can help? thanks.
w********u
发帖数: 71
2
For Xn+1 = (aXn) mode m, if m is a power of 2, the cycle can be
at most m/4, if you choose a = 3+8k or 5+8k, and the seed is odd.

what is the maximum period obtainable from the following generator?
Xn+1=(aXn) mod m, m=16
what should be the value of a?
what restrictions are required on the seed?
anyone can help? thanks.

【在 s******n 的大作中提到】
: what is the maximum period obtainable from the following generator?
: Xn+1=(aXn) mod m, m=16
: what should be the value of a?
: what restrictions are required on the seed?
: anyone can help? thanks.

s******n
发帖数: 34
3
this is a theorem? which one?
Thank you very much.

【在 w********u 的大作中提到】
: For Xn+1 = (aXn) mode m, if m is a power of 2, the cycle can be
: at most m/4, if you choose a = 3+8k or 5+8k, and the seed is odd.
:
: what is the maximum period obtainable from the following generator?
: Xn+1=(aXn) mod m, m=16
: what should be the value of a?
: what restrictions are required on the seed?
: anyone can help? thanks.

w********u
发帖数: 71
4
You can check any textbook with "random-number generation".
Or just google "linear-congruential generator".
This is originally proposed by D.H.Lehmer in 1949.

this is a theorem? which one?
Thank you very much.

【在 s******n 的大作中提到】
: this is a theorem? which one?
: Thank you very much.

1 (共1页)
进入CS版参与讨论
相关主题
请求推荐一本machine learning的书概率题目一道~~~
带友发帖sell plenty of CS textbook.编程语言选择问题
请推荐data structure比较好的textbookChomsky–Schützenberger theorem(zz)
Maximum Flow一章好多啊。。。。Re: [转载] 最好的max-weighted bipartite match
[转载] 有人在firstandsecond.com买过书吗?questions about a NP-hard problem
[转载] Automatic CS Paper Generator[转载] C++ / Java textbook?
帮忙下载一篇paperWhy I think the paper is junk, but it still gets good simulation result?
Whittaker-Shannon-Kotelnikov (W.S.K.) sampling theorem ref.?phd找工业界的工作编程重要吗?
相关话题的讨论汇总
话题: generator话题: number话题: what话题: xn