LP-Dependence Algorithm