How would I write an acceptance-rejection algorithm for this problem

See attached image.

Edit:
Someone has commented that the bounty is too low, I can't afford more so hopefully, this is less work:

Please see the second attached image for what I've done already. I'm basically just unsure if I have the value of c correct. So if anyone could correct that value (or reassure me that my workings are correct) I will give the bounty—no need for an in-depth explanation of the algorithm or how to find the acceptance rate.

  • This bounty is low for the level of the question and the required work to answer the question.

  • Hi @Daniel90 please look at the update I have written if you're still interested in helping. Thank you :-)

Answer

Answers can only be viewed under the following conditions:
  1. The questioner was satisfied with and accepted the answer, or
  2. The answer was evaluated as being 100% correct by the judge.
View the answer
Mathe Mathe
3.5K
  • Hi Mathe, thank you so much for your answer - I accepted it. However, h(x)=kx is exactly what my professor wrote which makes no sense to me either - could there be any other explanation for this which would make sense to you??

  • Mathe Mathe
    0

    It is a typo.

The answer is accepted.
Join Matchmaticians Affiliate Marketing Program to earn up to a 50% commission on every question that your affiliated users ask or answer.