How could measuring the orbit of a comet help scientists understand when it will next be visible from earth

With a minimum of three observations, at least several days apart, it is possible to establish the "orbit elements" and predict the appearance of future returns of the comet (if any). Many comets appear only once. Those are the ones with hyperbolic rather than elliptical orbits.