optimum

Can one obtain actual stack size used by a thread in Java after some time of running?

The idea would be to help determine the optimum stack size for a given Java application. One thing that could be done with this information create a range-table of stack sizes which the threads could modify as they exit and which could be dumped periodically and at application exit. EDIT: This is in the context of running on customer...

Local optimums in Electric Fences

Hi, I'm writing a solution for the Usaco problem "Electric Fences". In the problem you have to find the optimal location for a point among a large amount of linesegments, so the sum of point-linesegment distances is smallest possible. I had an idea, that it might be possible to do a hillclimb, and it worked for all testcases. The given ...