Do plants act like computers?

Leaves appear to regulate their 'breathing' by conducting simple calculations.