Fuzzy Simultaneous Congruences
Abstract
We introduce a very natural generalization of the well-known problem of simultaneous congruences. Instead of searching for a positive integer s that is specified by n fixed remainders modulo integer divisors a1,…,an we consider remainder intervals R1,…,Rn such that s is feasible if and only if s is congruent to ri modulo ai for some remainder ri in interval Ri for all i. This problem is a special case of a 2-stage integer program with only two variables per constraint which is is closely related to directed Diophantine approximation as well as the mixing set problem. We give a hardness result showing that the problem is NP-hard in general. By investigating the case of harmonic divisors, i.e. ai+1/ai is an integer for all i<n, which was heavily studied for the mixing set problem as well, we also answer a recent algorithmic question from the field of real-time systems. We present an algorithm to decide the feasibility of an instance in time O(n2) and we show that if it exists even the smallest feasible solution can be computed in strongly polynomial time O(n3).