WasGSOHM
Senior Member
- Location
- Montgomery County MD
- Occupation
- EE
on finding a bad outlet. He suggested starting at the midpoint.
"Binary Search: Search a sorted array [an outlet string] by repeatedly dividing the search interval [the string] in half.
This will get you to the answer on average in the least amount of time.
It's also called a binary chop routine.
"Binary Search: Search a sorted array [an outlet string] by repeatedly dividing the search interval [the string] in half.
This will get you to the answer on average in the least amount of time.
It's also called a binary chop routine.