Syntactic Confectionery Delight | |
PerlMonks |
Use Inverse Square Lawby Notromda (Pilgrim) |
on Jul 18, 2002 at 15:28 UTC ( [id://182858]=note: print w/replies, xml ) | Need Help?? |
Here's an off the wall idea, though I'm a long ways from trying to code it. Anyway, I'll start babbling and let someone else refine this, if it is worth it.
Think of it visually, like a dark room, and each complaint is a a candle. The radience from each candle dwindles as per inverse square law. If two candles are near each other, then they would have a bright area between them. All you need to do is find the brightest place and go there. How does this work in code? I'm not sure, but a matrix might be usefull. For every complaint, increment the value of nearby geographical points inversely proportional to the distance from the complaint. When all complaints are plotted, look for the highest value in the matrix, send a tech there. Remove up to X complaints within a radius of Y, and recompute. repeat as necessary. The granularity of the matrix could be adjusted as needed. The "luminosity" of complaints will also need tweaking.
Update:
In Section
Seekers of Perl Wisdom
|
|