(essays)-> Fence Post Problem
submited by Russell Sun 16 Jan 05|
Edited Mon 24 Jul 06
This is a recurring problem in life. Frequently occurs in programming, but it happens in real life as well. The basic concept is this:
If you have 100 feet to cover with one fence post every ten feet, how many posts do you need? Well, the obvious answer (100/10 =10) is wrong because there either will or will not be posts at the ends of the field.|
If posts are required at the ends, then you need 11 posts, if the ends do not require posts, you will only need 9.
In addition to building fences, this comes into play much more often than you would think. More often than I would like, I grumble as I discover an error in my programming and I say to my self "Fence Post Problem".
Also know as the fencepost error[Jargon]
Add comment or question...: