Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(essays)-> Fence Post Problem submited by Russell Sun 16 Jan 05
Edited Mon 24 Jul 06
Web kangry.com
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]
Fencepost Error[Wikipedia]


Replys:

Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Wednesday 03rd of December 2014 09:40:39 AM
your client: CCBot/2.0 (http://commoncrawl.org/faq/)
current time: Saturday 24th of June 2017 01:31:29 PM