Random-Number Generation
|
|
|
- Logan Reeves
- 10 years ago
- Views:
Transcription
1 Random-Number Generation Raj Jain Washington University Saint Louis, MO Audio/Video recordings of this lecture are available at:
2 Overview! Desired properties of a good generator! Linear-congruential generators! Tausworthe generators! Survey of random number generators! Seed selection! Myths about random number generation 26-2
3 Random-Number Generation! Random Number = Uniform (0, 1)! Random Variate = Other distributions = Function(Random number) 26-3
4 A Sample Generator! For example,! Starting with x 0 =5:! The first 32 numbers obtained by the above procedure 10, 3, 0, 1, 6, 15, 12, 13, 2, 11, 8, 9, 14, 7, 4, 5 10, 3, 0, 1, 6, 15, 12, 13, 2, 11, 8, 9, 14, 7, 4, 5.! By dividing x's by 16: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
5 Terminology! Seed = x 0! Pseudo-Random: Deterministic yet would pass randomness tests! Fully Random: Not repeatable! Cycle length, Tail, Period 26-5
6 Desired Properties of a Good Generator! It should be efficiently computable.! The period should be large.! The successive values should be independent and uniformly distributed 26-6
7 Types of Random-number number Generators! Linear congruential generators! Tausworthe generators! Extended Fibonacci generators! Combined generators 26-7
8 Linear-Congruential Generators! Discovered by D. H. Lehmer in 1951! The residues of successive powers of a number have good randomness properties. Equivalently, a = multiplier m = modulus 26-8
9 Linear-Congruential Generators (Cont)! Lehmer's choices: a = 23 and m = ! Good for ENIAC, an 8-digit decimal machine.! Generalization:! Can be analyzed easily using the theory of congruences Mixed Linear-Congruential Generators or Linear-Congruential Generators (LCG)! Mixed = both multiplication by a and addition of b 26-9
10 Selection of LCG Parameters! a, b, and m affect the period and autocorrelation! The modulus m should be large.! The period can never be more than m.! For mod m computation to be efficient, m should be a power of 2 Mod m can be obtained by truncation
11 Selection of LCG Parameters (Cont)! If b is nonzero, the maximum possible period m is obtained if and only if: " Integers m and b are relatively prime, that is, have no common factors other than 1. " Every prime number that is a factor of m is also a factor of a-1. " If integer m is a multiple of 4, a-1 should be a multiple of 4. " Notice that all of these conditions are met if m=2 k, a = 4c + 1, and b is odd. Here, c, b, and k are positive integers
12 Period vs. Autocorrelation! A generator that has the maximum possible period is called a full-period generator.! Lower autocorrelations between successive numbers are preferable.! Both generators have the same full period, but the first one has a correlation of 0.25 between x n-1 and x n, whereas the second one has a negligible correlation of less than
13 ! Multiplicative LCG: b=0 Multiplicative LCG! Two types: m = 2 k m 2 k 26-13
14 Multiplicative LCG with m=2 k! m = 2 k trivial division Maximum possible period 2 k-2! Period achieved if multiplier a is of the form 8i± 3, and the initial seed is an odd integer! One-fourth the maximum possible may not be too small! Low order bits of random numbers obtained using multiplicative LCG's with m=2 k have a cyclic pattern 26-14
15 Example 26.1a! Using a seed of x 0 =1: 5, 25, 29, 17, 21, 9, 13, 1, 5, Period = 8 = 32/4! With x 0 = 2, the sequence is: 10, 18, 26, 2, 10, Here, the period is only
16 Example 26.1b! Multiplier not of the form 8i ± 3:! Using a seed of x 0 = 1, we get the sequence: 7, 17, 23, 1, 7,! The period is only
17 Multiplicative LCG with m m 2 k! Modulus m = prime number With a proper multiplier a, period = m-1 Maximum possible period = m! If and only if the multiplier a is a primitive root of the modulus m! a is a primitive root of m if and only if a n mod m 1 for n = 1, 2,, m
18 Example 26.2! Starting with a seed of x 0 =1: 1, 3, 9, 27, 19, 26, 16, 17, 20, 29, 25, 13, 8, 24, 10, 30, 28, 22, 4, 12, 5, 15, 14, 11, 2, 6, 18, 23, 7, 21, 1, The period is 30 3 is a primitive root of 31! With a multiplier of a = 5: 1, 5, 25, 1, The period is only 3 5 is not a primitive root of 31! Primitive roots of 31= 3, 11, 12, 13, 17, 21, 22, and
19 ! PRN computation assumes: Schrage's Method " No round-off errors, integer arithmetic and no overflows Can't do it in BASIC " Product a x n-1 > Largest integer Overflow! Identity: Where: And: Here, q = m div a, r = m mod a `A div B' = dividing A by B and truncating the result.! For all x's in the range 1, 2,, m-1, computing g(x) involves numbers less than m-1.! If r < q, h(x) is either 0 or 1, and it can be inferred from g(x); h(x) is 1 if and only if g(x) is negative
20 Example 26.3! = = prime number! 7 5 = is one of its 534,600,000 primitive roots! The product a x n-1 can be as large as ! Need 46-bit integers! For a correct implementation, x 0 = 1 x = 1,043,618,
21 Generator Using Integer Arithmetic 26-21
22 Generator Using Real Arithmetic 26-22
23 Tausworthe Generators! Need long random numbers for cryptographic applications! Generate random sequence of binary digits (0 or 1)! Divide the sequence into strings of desired length! Proposed by Tausworthe (1965) Where c i and b i are binary variables with values of 0 or 1, and is the exclusive-or (mod 2 addition) operation.! Uses the last q bits of the sequence autoregressive sequence of order q or AR(q).! An AR(q) generator can have a maximum period of 2 q
24 Tausworthe Generators (Cont)! D = delay operator such that! Characteristic polynomial:! The period is the smallest positive integer n for which x n -1 is divisible by the characteristic polynomial.! The maximum possible period with a polynomial of order q is 2 q -1. The polynomials that give this period are called primitive polynomials
25 x 7 +x 3 +1 Example 26.4! Using D operator in place of x: Or:! Using the exclusive-or operator Or:! Substituting n-7 for n: 26-25
26 Example 26.4 (Cont)! Starting with b 0 = b 1 = L = b 6 = 1:! The complete sequence is: ! Period = 127 or bits The polynomial x 7 +x 3 +1 is a primitive polynomial
27 Combined Generators 1. Adding random numbers obtained by two or more generators. w n =(x n +y n ) mod m For example, L'Ecuyer (1986): This would produce: Period =
28 Combined Generators (Cont) Another Example: For 16-bit computers: Use: This generator has a period of
29 Combined Generators (Cont) 2. Exclusive-or random numbers obtained by two or more generators. 3. Shuffle. Use one sequence as an index to decide which of several numbers generated by the second sequence should be returned
30 ! Algorithm M: Combined Generators (Cont) a) Fill an array of size, say, 100. b) Generate a new y n (between 0 and m-1) c) Index i=1+100 y n /m d) ith element of the array is returned as the next random number e) A new value of x n is generated and stored in the ith location 26-44
31 Survey of Random-Number Generators! A currently popular multiplicative LCG is: " Used in:! SIMPL/I system (IBM 1972),! APL system from IBM (Katzan 1971),! PRIMOS operating system from Prime Computer (1984), and! Scientific library from IMSL (1980) " is a prime number and 7 5 is a primitive root of it Full period of " This generator has been extensively analyzed and shown to be good. " Its low-order bits are uniformly distributed
32 Survey of RNG s (Cont)! Fishman and Moore (1986)'s exhaustive search of m=2 31-1:! SIMSCRIPT II.5 and in DEC-20 FORTRAN: 26-46
33 Survey of RNG s (Cont)! ``RANDU'' (IBM 1968): Very popular in the 1960s: " Modulus and the multiplier were selected primarily to facilitate easy computation. " Multiplication by =65539 can be easily accomplished by a few shift and add instructions. " Does not have a full period and has been shown to be flawed in many respects. " Does not have good randomness properties (Knuth, p 173). " Triplets lie on a total of 15 planes Unsatisfactory three-distributivity " Like all LCGs with m=2 k, the lower order bits of this generator have a small period. RANDU is no longer used 26-47
34 Survey of RNG s (Cont)! Analog of RANDU for 16-bit microprocessors: " This generator shares all known problems of RANDU " Period = only a few thousand numbers not suitable for any serious simulation study! University of Sheffield Pascal system for Prime Computers: " i± 3 Does not have the maximum possible period of " Used with a shuffle technique in the subroutine UNIFORM of the SAS statistical package 26-48
35 Survey of RNG s (cont)! SIMULA on UNIVAC uses the following generator: " Has maximum possible period of 2 33, Park and Miller (1988) claim that it does not have good randomness properties.! The UNIX operating system: " Like all LCGs with m=2 k, the binary representation of x n 's has a cyclic bit pattern 26-49
36 Seed Selection! Multi-stream simulations: Need more than one random stream " Single queue Two streams = Random arrival and random service times 1. Do not use zero. Fine for mixed LCGs. But multiplicative LCG or a Tausworthe LCG will stick at zero. 2. Avoid even values. For multiplicative LCG with modulus m=2 k, the seed should be odd. Better to avoid generators that have too many conditions on seed values or whose performance (period and randomness) depends upon the seed value. 3. Do not subdivide one stream
37 Seed Selection (Cont) 4. Do not generate successive seeds: u 1 to generate inter-arrival times, u 2 to generate service time Strong correlation 5. Use non-overlapping streams. Overlap Correlation, e.g., Same seed same stream 6. Reuse seeds in successive replications. 7. Do not use random seeds: Such as the time of day. Can't reproduce. Can't guaranteed non-overlap. 8. Select 26-51
38 Table of Seeds 26-52
39 Myths About Random-Number Generation 1. A complex set of operations leads to random results. It is better to use simple operations that can be analytically evaluated for randomness. 2. A single test, such as the chi-square test, is sufficient to test the goodness of a random-number generator. The sequence 0,1,2,...,m-1 will pass the chi-square test with a perfect score, but will fail the run test Use as many tests as possible. 3. Random numbers are unpredictable. Easy to compute the parameters, a, c, and m from a few numbers LCGs are unsuitable for cryptographic applications 26-53
40 Myths (Cont) 4. Some seeds are better than others. May be true for some. " Works correctly for all seeds except x 0 = " Stuck at x n = forever " Such generators should be avoided. " Any nonzero seed in the valid range should produce an equally good sequence. " For some, the seed should be odd. " Generators whose period or randomness depends upon the seed should not be used, since an unsuspecting user may not remember to follow all the guidelines
41 Myths (Cont) 5. Accurate implementation is not important. " RNGs must be implemented without any overflow or truncation For example, " In FORTRAN: " The AND operation is used to clear the sign bit " Straightforward multiplication above will produce overflow. 6. Bits of successive words generated by a random-number generator are equally randomly distributed. " If an algorithm produces l-bit wide random numbers, the randomness is guaranteed only when all l bits are used to form successive random numbers
42 Example 26.7 Notice that: a) Bit 1 (the least significant bit) is always 1. b) Bit 2 is always 0. c) Bit 3 alternates between 1 and 0, thus, it has a cycle of length 2. d) Bit 4 follows a cycle (0110) of length 4. e) Bit 5 follows a cycle ( ) of length
43 Example 26.7 (Cont)! The least significant bit is either always 0 or always 1.! The lth bit has a period at most 2 l. (l=1 is the least significant bit)! For all mixed LCGs with m=2 k : " The lth bit has a period at most 2 l. " In general, the high-order bits are more randomly distributed than the low-order bits. Better to take the high-order l bits than the low-order l bits
44 Summary! Pseudo-random numbers are used in simulation for repeatability, non-overlapping sequences, long cycle! It is important to implement PRNGs in integer arithmetic without overflow => Schrage s method! For multi-stream simulations, it is important to select seeds that result in non-overlapping sequences! Two or more generators can be combined for longer cycles! Bits of random numbers may not be random 26-58
45 Homework 26! Submit answer to Exercise Submit code and report x 20,
46 Exercise 26.5 Implement the following LCG using Schrage's method to avoid overflow: Using a seed of x 0 =1, determine x
Testing Random- Number Generators
Testing Random- Number Generators Raj Jain Washington University Saint Louis, MO 63130 [email protected] Audio/Video recordings of this lecture are available at: http://www.cse.wustl.edu/~jain/cse574-08/
RANDOM NUMBER GEUERATORS: GOOD ONES ARE HARD TO FIN
COMPUTING PRACTICES Edgar H. Sibley Panel Editor Practical and theoretical issues are presented concerning the design, implementation, and use of a good, minimal standard random number generator that will
SECURITY EVALUATION OF EMAIL ENCRYPTION USING RANDOM NOISE GENERATED BY LCG
SECURITY EVALUATION OF EMAIL ENCRYPTION USING RANDOM NOISE GENERATED BY LCG Chung-Chih Li, Hema Sagar R. Kandati, Bo Sun Dept. of Computer Science, Lamar University, Beaumont, Texas, USA 409-880-8748,
Digital Signature. Raj Jain. Washington University in St. Louis
Digital Signature Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 [email protected] Audio/Video recordings of this lecture are available at: http://www.cse.wustl.edu/~jain/cse571-11/
Network Security. Chapter 6 Random Number Generation
Network Security Chapter 6 Random Number Generation 1 Tasks of Key Management (1)! Generation:! It is crucial to security, that keys are generated with a truly random or at least a pseudo-random generation
Computer Science 281 Binary and Hexadecimal Review
Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two
Types of Workloads. Raj Jain. Washington University in St. Louis
Types of Workloads Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 [email protected] These slides are available on-line at: http://www.cse.wustl.edu/~jain/cse567-08/ 4-1 Overview!
Network Protocol Design and Evaluation
Network Protocol Design and Evaluation 07 - Simulation, Part I Stefan Rührup Summer 2009 Overview In the last chapters: Formal Specification, Validation, Design Techniques Implementation Software Engineering,
Measures of Error: for exact x and approximation x Absolute error e = x x. Relative error r = (x x )/x.
ERRORS and COMPUTER ARITHMETIC Types of Error in Numerical Calculations Initial Data Errors: from experiment, modeling, computer representation; problem dependent but need to know at beginning of calculation.
COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012
Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about
Outline. Computer Science 418. Digital Signatures: Observations. Digital Signatures: Definition. Definition 1 (Digital signature) Digital Signatures
Outline Computer Science 418 Digital Signatures Mike Jacobson Department of Computer Science University of Calgary Week 12 1 Digital Signatures 2 Signatures via Public Key Cryptosystems 3 Provable 4 Mike
Network Security. Chapter 6 Random Number Generation. Prof. Dr.-Ing. Georg Carle
Network Security Chapter 6 Random Number Generation Prof. Dr.-Ing. Georg Carle Chair for Computer Networks & Internet Wilhelm-Schickard-Institute for Computer Science University of Tübingen http://net.informatik.uni-tuebingen.de/
The finite field with 2 elements The simplest finite field is
The finite field with 2 elements The simplest finite field is GF (2) = F 2 = {0, 1} = Z/2 It has addition and multiplication + and defined to be 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0 0 0 = 0 0 1 = 0
Network Security: Cryptography CS/SS G513 S.K. Sahay
Network Security: Cryptography CS/SS G513 S.K. Sahay BITS-Pilani, K.K. Birla Goa Campus, Goa S.K. Sahay Network Security: Cryptography 1 Introduction Network security: measure to protect data/information
Determining the Optimal Combination of Trial Division and Fermat s Factorization Method
Determining the Optimal Combination of Trial Division and Fermat s Factorization Method Joseph C. Woodson Home School P. O. Box 55005 Tulsa, OK 74155 Abstract The process of finding the prime factorization
Faster deterministic integer factorisation
David Harvey (joint work with Edgar Costa, NYU) University of New South Wales 25th October 2011 The obvious mathematical breakthrough would be the development of an easy way to factor large prime numbers
Factoring Algorithms
Institutionen för Informationsteknologi Lunds Tekniska Högskola Department of Information Technology Lund University Cryptology - Project 1 Factoring Algorithms The purpose of this project is to understand
ECE 0142 Computer Organization. Lecture 3 Floating Point Representations
ECE 0142 Computer Organization Lecture 3 Floating Point Representations 1 Floating-point arithmetic We often incur floating-point programming. Floating point greatly simplifies working with large (e.g.,
Network Security Part II: Standards
Network Security Part II: Standards Raj Jain Washington University Saint Louis, MO 63131 [email protected] These slides are available on-line at: http://www.cse.wustl.edu/~jain/cse473-05/ 18-1 Overview
Discrete Mathematics: Homework 7 solution. Due: 2011.6.03
EE 2060 Discrete Mathematics spring 2011 Discrete Mathematics: Homework 7 solution Due: 2011.6.03 1. Let a n = 2 n + 5 3 n for n = 0, 1, 2,... (a) (2%) Find a 0, a 1, a 2, a 3 and a 4. (b) (2%) Show that
Authentication, digital signatures, PRNG
Multimedia Security Authentication, digital signatures, PRNG Mauro Barni University of Siena Beyond confidentiality Up to now, we have been concerned with protecting message content (i.e. confidentiality)
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009. Notes on Algebra
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory
MEP Y9 Practice Book A
1 Base Arithmetic 1.1 Binary Numbers We normally work with numbers in base 10. In this section we consider numbers in base 2, often called binary numbers. In base 10 we use the digits 0, 1, 2, 3, 4, 5,
Cryptography and Network Security Chapter 8
Cryptography and Network Security Chapter 8 Fifth Edition by William Stallings Lecture slides by Lawrie Brown (with edits by RHB) Chapter 8 Introduction to Number Theory The Devil said to Daniel Webster:
CHAPTER 5. Number Theory. 1. Integers and Division. Discussion
CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a
A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications
Special Publication 800-22 Revision 1a A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications Andrew Rukhin, Juan Soto, James Nechvatal, Miles Smid, Elaine
Cryptography and Network Security. Prof. D. Mukhopadhyay. Department of Computer Science and Engineering. Indian Institute of Technology, Kharagpur
Cryptography and Network Security Prof. D. Mukhopadhyay Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Module No. # 01 Lecture No. # 12 Block Cipher Standards
Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)
Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem) In order to understand the details of the Fingerprinting Theorem on fingerprints of different texts from Chapter 19 of the
Math Workshop October 2010 Fractions and Repeating Decimals
Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,
Big Data & Scripting Part II Streaming Algorithms
Big Data & Scripting Part II Streaming Algorithms 1, Counting Distinct Elements 2, 3, counting distinct elements problem formalization input: stream of elements o from some universe U e.g. ids from a set
Course Outlines. 1. Name of the Course: Algebra I (Standard, College Prep, Honors) Course Description: ALGEBRA I STANDARD (1 Credit)
Course Outlines 1. Name of the Course: Algebra I (Standard, College Prep, Honors) Course Description: ALGEBRA I STANDARD (1 Credit) This course will cover Algebra I concepts such as algebra as a language,
Notes on Factoring. MA 206 Kurt Bryan
The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor
Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.
Algebra 2 - Chapter Prerequisites Vocabulary Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any. P1 p. 1 1. counting(natural) numbers - {1,2,3,4,...}
CUNSHENG DING HKUST, Hong Kong. Computer Security. Computer Security. Cunsheng DING, HKUST COMP4631
Cunsheng DING, HKUST Lecture 08: Key Management for One-key Ciphers Topics of this Lecture 1. The generation and distribution of secret keys. 2. A key distribution protocol with a key distribution center.
Continued Fractions. Darren C. Collins
Continued Fractions Darren C Collins Abstract In this paper, we discuss continued fractions First, we discuss the definition and notation Second, we discuss the development of the subject throughout history
Binary Number System. 16. Binary Numbers. Base 10 digits: 0 1 2 3 4 5 6 7 8 9. Base 2 digits: 0 1
Binary Number System 1 Base 10 digits: 0 1 2 3 4 5 6 7 8 9 Base 2 digits: 0 1 Recall that in base 10, the digits of a number are just coefficients of powers of the base (10): 417 = 4 * 10 2 + 1 * 10 1
Wireless LAN Security I: WEP Overview and Tools
Wireless LAN Security I: WEP Overview and Tools Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 [email protected] Audio/Video recordings of this lecture are available at: http://www.cse.wustl.edu/~jain/cse571-09/
Introduction to Finite Fields (cont.)
Chapter 6 Introduction to Finite Fields (cont.) 6.1 Recall Theorem. Z m is a field m is a prime number. Theorem (Subfield Isomorphic to Z p ). Every finite field has the order of a power of a prime number
March 29, 2011. 171S4.4 Theorems about Zeros of Polynomial Functions
MAT 171 Precalculus Algebra Dr. Claude Moore Cape Fear Community College CHAPTER 4: Polynomial and Rational Functions 4.1 Polynomial Functions and Models 4.2 Graphing Polynomial Functions 4.3 Polynomial
Factoring Algorithms
Factoring Algorithms The p 1 Method and Quadratic Sieve November 17, 2008 () Factoring Algorithms November 17, 2008 1 / 12 Fermat s factoring method Fermat made the observation that if n has two factors
CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis. Linda Shapiro Winter 2015
CSE373: Data Structures and Algorithms Lecture 3: Math Review; Algorithm Analysis Linda Shapiro Today Registration should be done. Homework 1 due 11:59 pm next Wednesday, January 14 Review math essential
MPI Hands-On List of the exercises
MPI Hands-On List of the exercises 1 MPI Hands-On Exercise 1: MPI Environment.... 2 2 MPI Hands-On Exercise 2: Ping-pong...3 3 MPI Hands-On Exercise 3: Collective communications and reductions... 5 4 MPI
Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur
Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur Module No. # 01 Lecture No. # 05 Classic Cryptosystems (Refer Slide Time: 00:42)
Chapter Objectives. Chapter 9. Sequential Search. Search Algorithms. Search Algorithms. Binary Search
Chapter Objectives Chapter 9 Search Algorithms Data Structures Using C++ 1 Learn the various search algorithms Explore how to implement the sequential and binary search algorithms Discover how the sequential
Zeros of Polynomial Functions
Zeros of Polynomial Functions The Rational Zero Theorem If f (x) = a n x n + a n-1 x n-1 + + a 1 x + a 0 has integer coefficients and p/q (where p/q is reduced) is a rational zero, then p is a factor of
LUC: A New Public Key System
LUC: A New Public Key System Peter J. Smith a and Michael J. J. Lennon b a LUC Partners, Auckland UniServices Ltd, The University of Auckland, Private Bag 92019, Auckland, New Zealand. b Department of
Math 55: Discrete Mathematics
Math 55: Discrete Mathematics UC Berkeley, Spring 2012 Homework # 9, due Wednesday, April 11 8.1.5 How many ways are there to pay a bill of 17 pesos using a currency with coins of values of 1 peso, 2 pesos,
A teaching experience through the development of hypertexts and object oriented software.
A teaching experience through the development of hypertexts and object oriented software. Marcello Chiodi Istituto di Statistica. Facoltà di Economia-Palermo-Italy 1. Introduction (1) This paper is concerned
Short Programs for functions on Curves
Short Programs for functions on Curves Victor S. Miller Exploratory Computer Science IBM, Thomas J. Watson Research Center Yorktown Heights, NY 10598 May 6, 1986 Abstract The problem of deducing a function
CS 758: Cryptography / Network Security
CS 758: Cryptography / Network Security offered in the Fall Semester, 2003, by Doug Stinson my office: DC 3122 my email address: [email protected] my web page: http://cacr.math.uwaterloo.ca/~dstinson/index.html
CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA
We Can Early Learning Curriculum PreK Grades 8 12 INSIDE ALGEBRA, GRADES 8 12 CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA April 2016 www.voyagersopris.com Mathematical
Tables so far. set() get() delete() BST Average O(lg n) O(lg n) O(lg n) Worst O(n) O(n) O(n) RB Tree Average O(lg n) O(lg n) O(lg n)
Hash Tables Tables so far set() get() delete() BST Average O(lg n) O(lg n) O(lg n) Worst O(n) O(n) O(n) RB Tree Average O(lg n) O(lg n) O(lg n) Worst O(lg n) O(lg n) O(lg n) Table naïve array implementation
The string of digits 101101 in the binary number system represents the quantity
Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for
Notes 11: List Decoding Folded Reed-Solomon Codes
Introduction to Coding Theory CMU: Spring 2010 Notes 11: List Decoding Folded Reed-Solomon Codes April 2010 Lecturer: Venkatesan Guruswami Scribe: Venkatesan Guruswami At the end of the previous notes,
Selection of Techniques and Metrics
Selection of Techniques and Metrics Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 [email protected] These slides are available on-line at: http://www.cse.wustl.edu/~jain/cse567-08/
Factoring & Primality
Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount
Lecture 11: Number Systems
Lecture 11: Number Systems Numeric Data Fixed point Integers (12, 345, 20567 etc) Real fractions (23.45, 23., 0.145 etc.) Floating point such as 23. 45 e 12 Basically an exponent representation Any number
Making the Monte Carlo Approach Even Easier and Faster. By Sergey A. Maidanov and Andrey Naraikin
Making the Monte Carlo Approach Even Easier and Faster By Sergey A. Maidanov and Andrey Naraikin Libraries of random-number generators for general probability distributions can make implementing Monte
Computer programming course in the Department of Physics, University of Calcutta
Computer programming course in the Department of Physics, University of Calcutta Parongama Sen with inputs from Prof. S. Dasgupta and Dr. J. Saha and feedback from students Computer programming course
Primality Testing and Factorization Methods
Primality Testing and Factorization Methods Eli Howey May 27, 2014 Abstract Since the days of Euclid and Eratosthenes, mathematicians have taken a keen interest in finding the nontrivial factors of integers,
ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology)
ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology) Subject Description: This subject deals with discrete structures like set theory, mathematical
Simulation Software 1
Simulation Software 1 Introduction The features that should be programmed in simulation are: Generating random numbers from the uniform distribution Generating random variates from any distribution Advancing
Cubes and Cube Roots
CUBES AND CUBE ROOTS 109 Cubes and Cube Roots CHAPTER 7 7.1 Introduction This is a story about one of India s great mathematical geniuses, S. Ramanujan. Once another famous mathematician Prof. G.H. Hardy
Binary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit
Decimal Division Remember 4th grade long division? 43 // quotient 12 521 // divisor dividend -480 41-36 5 // remainder Shift divisor left (multiply by 10) until MSB lines up with dividend s Repeat until
Chaotic Random Number Generators with Random Cycle Lengths
Chaotic Random Number Generators with Random Cycle Lengths by Agner Fog This document is published at www.agner.org/random/theory, December 2000, revised November 25, 200. Abstract A known cycle length
ELEMENTARY THOUGHTS ON DISCRETE LOGARITHMS. Carl Pomerance
ELEMENTARY THOUGHTS ON DISCRETE LOGARITHMS Carl Pomerance Given a cyclic group G with generator g, and given an element t in G, the discrete logarithm problem is that of computing an integer l with g l
Computer and Network Security
MIT 6.857 Computer and Networ Security Class Notes 1 File: http://theory.lcs.mit.edu/ rivest/notes/notes.pdf Revision: December 2, 2002 Computer and Networ Security MIT 6.857 Class Notes by Ronald L. Rivest
Genetic Algorithms commonly used selection, replacement, and variation operators Fernando Lobo University of Algarve
Genetic Algorithms commonly used selection, replacement, and variation operators Fernando Lobo University of Algarve Outline Selection methods Replacement methods Variation operators Selection Methods
Check Digits for Detecting Recording Errors in Horticultural Research: Theory and Examples
HORTSCIENCE 40(7):1956 1962. 2005. Check Digits for Detecting Recording Errors in Horticultural Research: Theory and Examples W.R. Okie U.S. Department of Agriculture, Agricultural Research Service, Southeastern
Direct Methods for Solving Linear Systems. Matrix Factorization
Direct Methods for Solving Linear Systems Matrix Factorization Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011
Useful Number Systems
Useful Number Systems Decimal Base = 10 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} Binary Base = 2 Digit Set = {0, 1} Octal Base = 8 = 2 3 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7} Hexadecimal Base = 16 = 2
Effective Secure Encryption Scheme [One Time Pad] Using Complement Approach Sharad Patil 1 Ajay Kumar 2
Effective Secure Encryption Scheme [One Time Pad] Using Complement Approach Sharad Patil 1 Ajay Kumar 2 Research Student, Bharti Vidyapeeth, Pune, India [email protected] Modern College of Engineering,
Erasure Codes Made So Simple, You ll Really Like Them
Erasure Codes Made So Simple, You ll Really Like Them W. David Schwaderer August 7, 214 [email protected] Santa Clara, CA 1 Agenda Errors Versus Erasures HDD Bit Error Rate Implications RAID 4,
Factorization Methods: Very Quick Overview
Factorization Methods: Very Quick Overview Yuval Filmus October 17, 2012 1 Introduction In this lecture we introduce modern factorization methods. We will assume several facts from analytic number theory.
Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8
ECE Department Summer LECTURE #5: Number Systems EEL : Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz Decimal Number System: -Our standard number system is base, also
Arena 9.0 Basic Modules based on Arena Online Help
Arena 9.0 Basic Modules based on Arena Online Help Create This module is intended as the starting point for entities in a simulation model. Entities are created using a schedule or based on a time between
Quantum Computing Lecture 7. Quantum Factoring. Anuj Dawar
Quantum Computing Lecture 7 Quantum Factoring Anuj Dawar Quantum Factoring A polynomial time quantum algorithm for factoring numbers was published by Peter Shor in 1994. polynomial time here means that
Simulation Tools Evaluation using Theoretical Manufacturing Model
Acta Polytechnica Hungarica Vol. 10, No. 2, 2013 Simulation Tools Evaluation using Theoretical Manufacturing Model Pavol Semanco, David Marton Faculty of Manufacturing Technologies with seat in Presov
Factoring. Factoring 1
Factoring Factoring 1 Factoring Security of RSA algorithm depends on (presumed) difficulty of factoring o Given N = pq, find p or q and RSA is broken o Rabin cipher also based on factoring Factoring like
minimal polyonomial Example
Minimal Polynomials Definition Let α be an element in GF(p e ). We call the monic polynomial of smallest degree which has coefficients in GF(p) and α as a root, the minimal polyonomial of α. Example: We
Chapter 3 Simulation Software. Simulation Modeling and Analysis Chapter 3 Simulation Software Slide 1 of 13
Chapter 3 Simulation Software Simulation Modeling and Analysis Chapter 3 Simulation Software Slide 1 of 13 3.1 Introduction CONTENTS 3.2 Comparison of Simulation Packages with Programming Languages 3.3
ARCHIVED PUBLICATION
ARCHIVED PUBLICATION The attached publication, FIPS Publication 186-3 (dated June 2009), was superseded on July 19, 2013 and is provided here only for historical purposes. For the most current revision
2010/9/19. Binary number system. Binary numbers. Outline. Binary to decimal
2/9/9 Binary number system Computer (electronic) systems prefer binary numbers Binary number: represent a number in base-2 Binary numbers 2 3 + 7 + 5 Some terminology Bit: a binary digit ( or ) Hexadecimal
Manhattan Center for Science and Math High School Mathematics Department Curriculum
Content/Discipline Algebra 1 Semester 2: Marking Period 1 - Unit 8 Polynomials and Factoring Topic and Essential Question How do perform operations on polynomial functions How to factor different types
Secure Programming and Source-Code Reviews - In the UNIX Environment. Thomas Biege <[email protected]>
Secure Programming and Source-Code Reviews - In the UNIX Environment Thomas Biege What will I talk about? Application Design Programming Errors Cryptography and Randomness Secure Socket
Systems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 2: Number Systems and Arithmetic Number Systems - Base The number system that we use is base : 734 = + 7 + 3 + 4 = x + 7x + 3x + 4x = x 3 + 7x
Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)
Chapter 23 Squares Modulo p Revised Version of Chapter 23 We learned long ago how to solve linear congruences ax c (mod m) (see Chapter 8). It s now time to take the plunge and move on to quadratic equations.
CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY
January 10, 2010 CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY The set of polynomials over a field F is a ring, whose structure shares with the ring of integers many characteristics.
Applied Cryptography Public Key Algorithms
Applied Cryptography Public Key Algorithms Sape J. Mullender Huygens Systems Research Laboratory Universiteit Twente Enschede 1 Public Key Cryptography Independently invented by Whitfield Diffie & Martin
Cryptography and Network Security Number Theory
Cryptography and Network Security Number Theory Xiang-Yang Li Introduction to Number Theory Divisors b a if a=mb for an integer m b a and c b then c a b g and b h then b (mg+nh) for any int. m,n Prime
Figure 1. A typical Laboratory Thermometer graduated in C.
SIGNIFICANT FIGURES, EXPONENTS, AND SCIENTIFIC NOTATION 2004, 1990 by David A. Katz. All rights reserved. Permission for classroom use as long as the original copyright is included. 1. SIGNIFICANT FIGURES
ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS
ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS John A. Beachy Northern Illinois University 2014 ii J.A.Beachy This is a supplement to Abstract Algebra, Third Edition by John A. Beachy and William D. Blair
