You have a straight line on which there is a submarine. You have an unlimited number of bullets, each one one that can destroy this submarine. The parameters: (1) this submarine is moving at a constant speed, meaning it proceeds a certain number of units every set span of time; (2) you do not know whether it is moving toward negative infinity or positive infinity; (3) you cannot assume that the curvature of the world will allow you to wait until the submarine comes around the world; (4) you do not know the starting point but you do know that it, for our purposes, doesn't have an ending point; (5) you do not know the speed of the submarine, meaning it can be moving faster than your bullets... How are you able to shoot this submarine with the guidelines provided? Hint: It may involve some algorithmic applications.