Please refer to the decrypting the two time pad problem on this page.
The following are the problem characteristics. It is an instance of:
I have not implemented this algorithm. But the analysis and the requirements of the problem do indicate that an approximate solution is requi Ared and the quality of it will hence depend upon (drawn from the algorithm) the chosen reference text. As such we may have to try out the implementation with mulitple chosen texts.
I am a 3D graphics software engineer.