Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3 Weak collisions (16 marks) The cryptographic relevance of this problem will become evident when we cover hash functions in class. For each question

image text in transcribed

image text in transcribed

Problem 3 Weak collisions (16 marks) The cryptographic relevance of this problem will become evident when we cover hash functions in class. For each question below, provide a brief explanation and a compact formula for your answer. For part (d), give a numerical value that is an integer. Let n be positive integer. Consider an experiment involving a group of participants, where we assign each participant a number that is randomly chosen from the set {1, 2, ..., n} (so all these assignments are independent events). Note that we allow for the possibility of assigning the same number to two different participants. Now pick your favourite number N between 1 and n. When any one of the participants is assigned the number N, we refer to this as a weak collision (with N). In this problem, we determine how to ensure at least a 50% chance of a weak collision in our experiment. a. (2 marks) What is the probability that a given participant is assigned your favourite number N? b. (2 marks) What is the probability that a given participant is not assigned the number N? c. (3 marks) Suppose k people participate in the experiment (for some positive integer k). What is the probability that none of them is assigned the number N, i.e. that there is no weak collision? d. (4 marks) Intuitively, the more people participate, the likelier we encounter a weak colli- sion. We wish to find the minimum number K of participants required to ensure at least a 50% chance of a weak collision. Suppose n = 10. What is the threshold K in this case? e. (5 marks) Generalizing part (d) from n = 10 to arbitrary n, prove that if the number of participants is above log(2)n = 0.69n, then there is at least a of a weak collision. Use (without proof) the inequality 1- x 0. (1) (This inequality comes from the Taylor series exp( =1-X + x2 2! 23 + 3! +... 4! and the sum of the terms from x2 /2 onwards is positive.) Concluding Remark. In (1), when x is small, exp(-x) is very close to 1 x; for example, exp(0.01) and 1-0.01 are within 4 decimal places of each other. This implies that for large n, the threshold 0.69n of part (e) is close to optimal, i.e. we expect the necessary and sufficient number of participants for ensuring a weak collision with at least 50% probability to be on the order of n. Compare this to the corresponding result for (strong) collisions derived in the next problem. Problem 3 Weak collisions (16 marks) The cryptographic relevance of this problem will become evident when we cover hash functions in class. For each question below, provide a brief explanation and a compact formula for your answer. For part (d), give a numerical value that is an integer. Let n be positive integer. Consider an experiment involving a group of participants, where we assign each participant a number that is randomly chosen from the set {1, 2, ..., n} (so all these assignments are independent events). Note that we allow for the possibility of assigning the same number to two different participants. Now pick your favourite number N between 1 and n. When any one of the participants is assigned the number N, we refer to this as a weak collision (with N). In this problem, we determine how to ensure at least a 50% chance of a weak collision in our experiment. a. (2 marks) What is the probability that a given participant is assigned your favourite number N? b. (2 marks) What is the probability that a given participant is not assigned the number N? c. (3 marks) Suppose k people participate in the experiment (for some positive integer k). What is the probability that none of them is assigned the number N, i.e. that there is no weak collision? d. (4 marks) Intuitively, the more people participate, the likelier we encounter a weak colli- sion. We wish to find the minimum number K of participants required to ensure at least a 50% chance of a weak collision. Suppose n = 10. What is the threshold K in this case? e. (5 marks) Generalizing part (d) from n = 10 to arbitrary n, prove that if the number of participants is above log(2)n = 0.69n, then there is at least a of a weak collision. Use (without proof) the inequality 1- x 0. (1) (This inequality comes from the Taylor series exp( =1-X + x2 2! 23 + 3! +... 4! and the sum of the terms from x2 /2 onwards is positive.) Concluding Remark. In (1), when x is small, exp(-x) is very close to 1 x; for example, exp(0.01) and 1-0.01 are within 4 decimal places of each other. This implies that for large n, the threshold 0.69n of part (e) is close to optimal, i.e. we expect the necessary and sufficient number of participants for ensuring a weak collision with at least 50% probability to be on the order of n. Compare this to the corresponding result for (strong) collisions derived in the next

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions