Two Algorithms for Solving L1_Regular Term Optimization Problems