PHP Classes

Optimization problem

Recommend this page to a friend!

      Graf  >  All threads  >  Optimization problem  >  (Un) Subscribe thread alerts  
Subject:Optimization problem
Summary:Library crashes apache
Messages:2
Author:senninek
Date:2009-02-19 07:37:10
Update:2009-02-19 08:03:21
 

 


  1. Optimization problem   Reply   Report abuse  
Picture of senninek senninek - 2009-02-19 07:37:10
I am using this class in my project. When my graf has about 20 nodes, calculations the way from one node to another (for every node) crashes apache. This is a sample of my code:

$cutoff = array();
for($i=0;$i<$limit;++$i){
if($i != $capital_index){
$border -> ways_from_point_to_point($capital_index, $i);
if(empty($border -> routs)){
$cutoff[] = $i;
}
}
}

This piece of code is generating problem. Maybe I don't know something about this lib.

  2. Re: Optimization problem   Reply   Report abuse  
Picture of Protung Dragos Protung Dragos - 2009-02-19 08:03:21 - In reply to message 1 from senninek
Hi senninek,

this class is 5 years old and it was written for a earlier version of PHP and may not work as expected now.

I will not make any further updates to this class.

If you want to create a new class and need help with the algorithm I can help you.