{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# hw2 - (a Z i =(13 Z i-1 13 mod 16(b Z i =(12 Z i-1 13 mod...

This preview shows page 1. Sign up to view the full content.

AMS 553: Homework 2 1. (L&K 7.1) Consider the LCG Z i = (5 Z i + 3)( mod 16) and Z 0 = 7. Find Z 500 , using only pencil and paper. 2. (L&K 7.2) For the following multiplicative LCGs, compute Z i for enough values of i 1 to cover an entire cycle: (a) Z i = (11 Z i - 1 )( mod 16) , Z 0 = 1 (b) Z i = (11 Z i - 1 )( mod 16) , Z 0 = 2 (c) Z i = (2 Z i - 1 )( mod 13) , Z 0 = 1 (d) Z i = (3 Z i - 1 )( mod 13) , Z 0 = 1 Note that (a) and (b) have m of the form 2 b ; (c) is a PMMLCG, for which a = 2 is a primitive element modulo m = 13. 3. (L&K 7.3) Without actually computing any Z i ’s, determine which of the following mixed LCGs have full period:
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (a) Z i = (13 Z i-1 + 13)( mod 16) (b) Z i = (12 Z i-1 + 13)( mod 16) (c) Z i = (13 Z i-1 + 12)( mod 16) (d) Z i = ( Z i-1 + 12)( mod 13) For part (d), also plot the pairs ( U 1 ,U 2 ) , ( U 2 ,U 3 ) ,... . Are there any obvious undesirable structure? 4. Without generating any Z i ’s, determine which of the following multiplicative LCGs is an PMMLCG? (a) Z i = (2 Z i-1 )( mod 19) (b) Z i = (4 Z i-1 )( mod 15) (c) Z i = (97 Z i-1 )( mod 9021)...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern