Prompt 1 Flashcards

1
Q

What is the Optimal Stopping problem?

A

A class of problems that involve deciding when to stop searching for a better option, given limited time or resources.

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

What does the Optimal Stopping problem aim to determine?

A

The optimal point at which to stop searching, balancing the risk of stopping too early and missing a better option with the cost of continuing the search.

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

What is the ‘37% Rule’ in the Optimal Stopping Problem?

A

The optimal strategy in a simplified scenario where the goal is to maximize the chance of selecting the best option from a sequence of unknown length. It involves observing the first 37% of the options without making a choice, then selecting the next option that surpasses all the previous ones.

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

What real-world scenarios are often modeled as Optimal Stopping problems?

A

Choosing a secretary, finding an apartment, deciding when to sell a stock.

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

What are some of the limitations of applying the ‘37% Rule’ in real-world scenarios?

A

The exact percentage may vary depending on the specific problem parameters. Real-world problems often involve additional complexities, such as incomplete information or changing circumstances.

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

What is the Explore/Exploit trade-off?

A

The dilemma of choosing between exploring new options to gain knowledge and exploiting known options to maximize immediate rewards.

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

What is the multi-armed bandit problem, and how does it relate to the Explore/Exploit Dilemma?

A

A mathematical framework for modeling decision-making under uncertainty, where a gambler must choose between playing different slot machines (arms) with unknown pay off probabilities. This problem captures the essence of the explore/exploit tradeoff.

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

What is the Gittins Index?

A

A mathematical index that assigns a value to each option in a multi-armed bandit problem, taking into account its potential pay off and the uncertainty associated with that pay off.

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

How does the Explore/Exploit Dilemma apply to A/B testing in website design?

A

Exploration: Companies experiment with different versions of their website to find the one that performs best. Exploitation: Once they identify the best-performing version, they show it to most users to maximize conversions or engagement.

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

How does the Explore/Exploit Dilemma manifest in human relationships?

A

Exploration: Young adults may date many people to learn about different relationship dynamics and find a compatible partner. Exploitation: Older adults may focus on maintaining existing relationships with close friends and family.

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

What is sorting in the context of algorithms?

A

The process of arranging elements in a specific order, such as numerical or alphabetical.

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

What is the ‘scale hurts’ principle in sorting?

A

The observation that the time required to sort a set of items increases significantly as the number of items to be sorted grows larger.

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

What is the difference between Merge Sort and Bucket Sort?

A

Merge Sort: A divide-and-conquer algorithm that recursively divides the list into smaller sub-lists, sorts them, and then merges the sorted sub-lists. Bucket Sort: A sorting algorithm that distributes the elements into a number of buckets, sorts the elements within each bucket, and then concatenates the buckets.

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

How can understanding sorting algorithms be applied to real-life situations?

A

Organizing physical items (books, clothes, files), managing digital information (emails, documents), prioritizing tasks based on urgency or importance.

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

What is caching in the context of computer science?

A

The process of storing frequently accessed data in a smaller, faster memory location (the cache) to improve retrieval speed.

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

What is the principle of temporal locality and how does it relate to caching?

A

The observation that if a program accesses a particular piece of data, it is likely to access the same data again soon.

17
Q

What is the Least Recently Used (LRU) cache eviction policy?

A

A cache management strategy that removes the least recently used item from the cache when it becomes full.

18
Q

What is the ‘memory wall’ problem in computer architecture?

A

The performance bottleneck caused by the growing disparity between processor speed and memory access time.

19
Q

What is scheduling in the context of algorithms?

A

The process of deciding when to execute tasks or jobs to optimize a particular performance metric.

20
Q

What are some of the common metrics used to evaluate scheduling algorithms?

A

Completion time, Makespan, Lateness.

21
Q

What is the difference between preemptive and non-preemptive scheduling?

A

Preemptive scheduling: Allows tasks to be interrupted and resumed later. Non-preemptive scheduling: Requires tasks to run to completion once started.

22
Q

What is the Shortest Processing Time (SPT) scheduling algorithm, and what is its main advantage?

A

An algorithm that schedules tasks in order of their processing time, starting with the shortest task first. Its main advantage is that it minimizes the average completion time of all tasks.

23
Q

What is Bayes’s Rule?

A

A mathematical formula that describes how to update our beliefs about the probability of an event occurring based on prior knowledge and new evidence.

24
Q

What are prior beliefs and how do they influence Bayesian reasoning?

A

Initial assumptions or beliefs about the probability of different hypotheses before considering new evidence.

25
Q

What is the difference between a fair coin and a two-headed coin in the context of Bayesian inference?

A

Fair coin: Has a 50/50 chance of landing on heads or tails. Two-headed coin: Will always land on heads.

26
Q

What is overfitting in the context of machine learning and statistical modeling?

A

The phenomenon where a model is trained too well on the training data and performs poorly on new, unseen data.

27
Q

What is cross-validation and how does it help to prevent overfitting?

A

A technique used to assess the generalization ability of a model by evaluating its performance on a portion of the data that was not used for training.

28
Q

What is the principle of Early Stopping and how does it relate to overfitting?

A

A regularization technique used in machine learning to prevent overfitting by stopping the training process before the model has fully converged.

29
Q

What is the relationship between complexity and overfitting?

A

As the complexity of a model increases, so does the risk of overfitting.

30
Q

What is Relaxation in the context of problem-solving?

A

A technique that involves simplifying a complex problem by temporarily relaxing some of the constraints or assumptions.

31
Q

What is an example of Relaxation in a real-world problem?

A

Planning a road trip: To find a feasible route, we might initially ignore factors like speed limits and traffic conditions.

32
Q

What is Lagrangian Relaxation?

A

A specific type of Relaxation technique that involves converting hard constraints into soft constraints by introducing penalty terms into the objective function.

33
Q

What is the relationship between Relaxation and the concept of ‘good enough’ solutions?

A

Relaxation techniques often lead to solutions that are not necessarily optimal but are ‘good enough’ for practical purposes.

34
Q

What is randomness in the context of computer science and algorithms?

A

The use of unpredictable or non-deterministic elements in algorithms to introduce variability or explore a wider range of possibilities.

35
Q

What is the Monte Carlo Method?

A

A computational technique that uses random sampling to estimate the solution to a problem.

36
Q

What are some of the advantages of incorporating randomness into algorithms?

A

Exploring a wider search space, breaking symmetry, improving robustness.

37
Q

What are some examples of real-world applications of randomized algorithms?

A

Cryptography, Simulation, Game playing.