Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2(30 points) Random number generation Answer a), b) and c) below for a Lincar Congruential Gencrator (LCG) used so goncrate integer random numbers. The following

image text in transcribed

2(30 points) Random number generation Answer a), b) and c) below for a Lincar Congruential Gencrator (LCG) used so goncrate integer random numbers. The following sequence of integer numbers were gencrated 3,6, 5,0,7,?,1,4.3 a). If the LCG is full period, then what is the value of the modulus (m) b. What is the missing integer number () generated by the LCo? c). If the multiplier (a) of the generator were 5,and the modulus m were 16, what would be the value of the increment (c) that would generate the first five values (i.e.3,6, 5,0,7 Answer questions d), and e) below for a composite generator used to generate integer random numbers mombers. One of the multiplicative gonerators in the composite gencrator has parameter modalus 13 and initial value of 7. The "other" multiplicative generator in the composite penerator has parameter 9 and the initial value is 3 d). Generate the first two integer random numbers (Zi and Z using the composite generator and assuming that the modulus for the "other" multiplicative generabce is 17 e). If the composite generator needs to have period of at least 1000, what is the minimam value of the modulus for the other generator (pive a lower bound even if it is not a prime number), assuming that the parameters are primitive elements of their module m"7 2(30 points) Random number generation Answer a), b) and c) below for a Lincar Congruential Gencrator (LCG) used so goncrate integer random numbers. The following sequence of integer numbers were gencrated 3,6, 5,0,7,?,1,4.3 a). If the LCG is full period, then what is the value of the modulus (m) b. What is the missing integer number () generated by the LCo? c). If the multiplier (a) of the generator were 5,and the modulus m were 16, what would be the value of the increment (c) that would generate the first five values (i.e.3,6, 5,0,7 Answer questions d), and e) below for a composite generator used to generate integer random numbers mombers. One of the multiplicative gonerators in the composite gencrator has parameter modalus 13 and initial value of 7. The "other" multiplicative generator in the composite penerator has parameter 9 and the initial value is 3 d). Generate the first two integer random numbers (Zi and Z using the composite generator and assuming that the modulus for the "other" multiplicative generabce is 17 e). If the composite generator needs to have period of at least 1000, what is the minimam value of the modulus for the other generator (pive a lower bound even if it is not a prime number), assuming that the parameters are primitive elements of their module m"7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

1. Identify what positions are included in the plan.

Answered: 1 week ago