Determining functions from input-output tables