Skip to content

Instantly share code, notes, and snippets.

View Azeirah's full-sized avatar

Laura Azeirah

  • Independent software engineer
  • Netherlands
View GitHub Profile
@Azeirah
Azeirah / problematic_plugin_finder.py
Last active April 13, 2025 23:46
Plugin culprit finding simulation, binary search vs linear search
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.
"""