Average Case Flashcards
What is the intuition behind average case algorithms?
What is the definition of Expectation of variable T?
Find the expectation of T for the following:
Find the expactation of the following:
What is a Randomized Algorithm?
What is the randomized algorithm type: Las Vegas?
What is an example of this algorithm?
What is the randomised algorithm type; Monte Carlo?
What are the advantages/disadvantages of randomized algorithms in general?
What are the advantages/disadvantages of Las Vegas algorithms?
What are the advantages/disadvantages of Monte Carlo algorithms?
Why does it make more sense to think about expected time instead of worst-case time for Las Vegas algorithms?
How would you use a Monte Carlo algo to approximate the value of Pi using only addition, multiplation, and division?
What would the code look like for the following Algo?
What would the run time be?