Bisection Search Like A (Human) Boss

Bisection search, or binary search for us developers, is a technique for finding the best value within a given range of values. This post describes tips for when you need to bisection search manually by hand (by “feel”), as opposed to when it can be automated by, say, a computer algorithm.

Bisection search, or binary search for us developers, is a technique for finding the best value within a given range of values.  Technically speaking, Wikipedia says the “bisection method in mathematics is a root-finding method that repeatedly bisects an interval and then selects a subinterval in which a root must lie for further processing.” This post describes tips for when you need to bisection search manually by hand (by “feel”), as opposed to when it can be automated by, say, a computer algorithm.

For example, say you’re very thirsty and need water fast so you pour yourself a glass of water: Pour too fast and it spills but too slow and it takes too long. You want to pour fast enough to quench your thirst as soon as possible but not so fast that it spills. The speed of pouring is your range of values (eg. slow to fast) and the consequences of the speed of pouring (how long it takes and if it spills) are your criteria to decide the best value. You try pouring the glass slowly and it’s too slow: Pour faster. You try pouring the glass faster and it spills: Pour slower but faster than the first time. You try pouring the glass “just right”: It’s fast enough and doesn’t spill. You’ve found the best pouring speed by bisection search!

Continue reading “Bisection Search Like A (Human) Boss”

Fix for Firefox Freezing

Firefox has long had an issue with freezing/hitching. Here’s the fix: Go to about:config, search for browser.sessionstore.interval and set it higher than its default (10000). The units are milliseconds (divide by 1000 to get seconds). I prefer to set it to 60000 or greater.

Firefox has long had an issue with freezing/hitching. Here’s the fix: Go to about:config, search for browser.sessionstore.interval and set it higher than its default (10000). The units are milliseconds (divide by 1000 to get seconds). I prefer to set it to 60000 or greater.

I will grant that I have Firefox on 5 workstations and only one really, really bothered me (my work computer, where I spend more of my computer time). Anyway, if you have the problem here’s the solution that solved mine at work.