  The article presents the theoretical foundations of the algorithm for
calculating the number of different genomes in the medium under study and of
two algorithms for determining the presence of a particular (known) genome in
this medium. The approach is based on the analysis of the compositional spectra
of subsequently sequenced samples of the medium. The theoretical estimations
required for the implementation of the algorithms are obtained.
