Text this: Discrete inverse and state estimation problems