A special arrangement of a gravity-wave experiment, in which the noise back
ground of the gravity detector is investigated near time markers correspond
ing to the detection of astrophysical events accompanying neutron or gamma
bursts, is studied. A general algorithm is developed for analyzing the trac
es for the case of resonant solid-state detectors. The efficiency of the al
gorithm is demonstrated in a reanalysis of old data concerning the "neutron
-gravity correlation" effect associated with the explosion of the SN1987A S
upernova. Modifications of the algorithm for searching for gamma-gravity co
rrelations are proposed. (C) 2000 MAIK "Nauka/Interperiodica".