This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| def simulate_linear_search(num_plugins, t_toggle, t_check, prob_index): | |
| """ | |
| Simulate linear search for the problematic plugin. | |
| In linear search, we disable one plugin at a time, check if the problem is fixed, | |
| and re-enable it before trying the next one. | |
| """ |
OlderNewer