Pseudorandom random number generator

Assignment Help Basic Computer Science
Reference no: EM133075167

Implement a pseudorandom randomnumber (bit) generator (PRNG). A good random bit generator is supposed to generate bits independently, i.e., the probability of bit 0 (p0) is the same as the probability of bit 1 (p1), where p0 = p1 = 0.5 and p0 + p1 = 1.

However, one student (Alice) implemented it in a bad way, i.e., p0 6= p1. For example, p0 = 0.3 and p1 = 0.7, or p0 = 0.2 and p1 = 0.8. Of course, the actual probabilities and her implementation details are unknown to you. You job is to use Alice's defective generator to produce an unbiased random bit string without using additional cryptographic tools.

First, clearly explain your step-by-step algorithms (or pseudocode). Second, provide a formal proof of correctness.

Reference no: EM133075167

Questions Cloud

Demonstrate how to assemble modern computer components : Be able to carry out desktop engineering fundamentals and Configure a network using routing and switching techniques
Dissertation is the methodology : An important component of your dissertation is the methodology chosen. Discuss the topic that you are selecting for your dissertation.
What is the unit contribution for each pre-lit tree : Current production is 12,000 trees per month. Farm Fresh Trees normally sells the tree for $350.00 per unit. What is the unit contribution for each pre-lit tree
Different from ordinary tables and files : Discuss the characteristics of relations that make them different from ordinary tables and files.
Pseudorandom random number generator : Implement a pseudorandom randomnumber (bit) generator (PRNG). Explain your step-by-step algorithms (or pseudocode).
What should be the current price of the stock : A company will pay a $2 per share dividend in one year. The dividend in two years will be $4 per share. What should be the current price of the stock
Prepare the couple balance sheet : i.Prepare the couple's balance sheet for the year ended 31 December 2020 ii.Prepare the couple's income statement for the year ended 31 December 2020
Compute the break-even point in units and revenue : Question - TED Ltd. has fixed costs of Rs.625,000 per year and variable costs of Rs. 7.50 per unit. Compute the break-even point in units and revenue
Net present value of the project : A project will produce an operating cash flow of $7,300 a year for three years. The initial investment for fixed assets will be $11,600, which will be depreciat

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Describe valid advice for naming variables

Which of the given is valid advice for naming variables? To save typing, make most variable names one or two letters. to avoid conflict with names which others are using , utilize unusual or unpronounceable names.

  Business continuity planning and disaster recovery plan

When law enforcement becomes involved, the need may arise to freeze systems as part of the evidence

  Construct a hedge that will protect against movements

Construct a hedge that will protect against movements in the stock market as a whole. Use the September stock index futures

  Federal statute that regulates pornography

Identify and cite one federal statute that regulates pornography on the internet, and also summarize, what that statute accomplishes

  What is the relationship between a tcp and udp packet

What is the relationship between a TCP and UDP packet? Will any specific transaction usually involve both types of packets?

  New medium-sized health care facility

A new medium-sized health care facility just opened and you are hired as the CIO.

  Improvements in the workforce

As our society becomes more technologically based, should government also regulate tax dollars for machine/computer-based improvements in the workforce?

  Influence on the american housing industry

Reflect on the damage caused by unethical lending practices by mortgage companies. What effect do you think has the potential for the longest-term influence on the American housing industry and why? Provide an example to support your thoughts.

  Development of effective entity relationship model

Determine the steps in the development of an effective entity relationship model (ERM) diagram and determine the possible iterative steps

  What that teach us security professional and regular user

Yahoo estimated that 3 billion user accounts were compromised. What that teach us as a security professional and as regular user ?

  Discussion on policy and advocacy in improving population

Discussion on policy and advocacy in improving population health discussion, you considered how professional nurses can become involved in policy-making.

  Big data analytics in e-healthcare industry

There are several benefits as well as challenges associated with the use of Big Data Analytics in the e-Healthcare industry.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd