27.01.2014 Views

An Introduction to Monte Carlo Methods in Statistical Physics.

An Introduction to Monte Carlo Methods in Statistical Physics.

An Introduction to Monte Carlo Methods in Statistical Physics.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Shift Register (Tausworthe<br />

( Tausworthe) ) Algorithm<br />

A new random number is produced by comb<strong>in</strong><strong>in</strong>g two<br />

different exist<strong>in</strong>g numbers from a pre-exist<strong>in</strong>g table:<br />

X n = X n − p . XOR . X n − q<br />

where p and q must be properly chosen. The .XOR.<br />

opera<strong>to</strong>r is the bitwise exclusive-OR opera<strong>to</strong>r. The best<br />

choices of the pairs (p,q) are given by primitive Mersenne<br />

tr<strong>in</strong>omials:<br />

+ q x p x<br />

+1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!