Question

Linear Congruential Generator: Example 2 Homework. Unanswered What is the period-length of the Linear Congruential GeneratorLinear Congruential Generator: Example 1 Homework. Unanswered What is the period-length of the Linear Congruential Generator

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.)

  • The given generator is X_n = (2X_{n-1}+5)mod13
  • if x0 = 1, then the sequence generated by this generator is 1, 7, 6, 4, 0, 5, 2, 9, 10, 12, 3, 11, 1, ...
  • We see that the sequence starts repeating after 12 numbers.
  • So, the period lenght of this generator is 12.
  • Answer: 12

2.)

  • The given generator is X_n = (2X_{n-1}+5)mod13
  • if x0 = 8, then the sequence generated by this generator is 8,8,8,8,...
  • We see that sequence repeats itself after every number.
  • so, the period length of this generator is 1.
  • Answer : 1
Add a comment
Know the answer?
Add Answer to:
Linear Congruential Generator: Example 2 Homework. Unanswered What is the period-length of the Linear Congruential Generator...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT