Classical and Quantum Algorithms for the Deterministic L-system Inductive Inference Problem