Noun set of rules for solving a problem in a number of steps

As the P2 wave energy device bobs with the waves, hydraulic rams pump fluid that drives a turbine. Their resistance is controlled by an algorithm to maximize energy production.