Average Case Flashcards

1
Q

What is the intuition behind average case algorithms?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the definition of Expectation of variable T?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Find the expectation of T for the following:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Find the expactation of the following:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Randomized Algorithm?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the randomized algorithm type: Las Vegas?

What is an example of this algorithm?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the randomised algorithm type; Monte Carlo?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the advantages/disadvantages of randomized algorithms in general?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the advantages/disadvantages of Las Vegas algorithms?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the advantages/disadvantages of Monte Carlo algorithms?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why does it make more sense to think about expected time instead of worst-case time for Las Vegas algorithms?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How would you use a Monte Carlo algo to approximate the value of Pi using only addition, multiplation, and division?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What would the code look like for the following Algo?

What would the run time be?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly