🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.theory
Article #1739

a problem

#1739
From: Duanyang Guo
Date: Fri, 18 Dec 1992 04:15
34 lines
1602 bytes
I met a problem recently. 

given an integer vector (x1, x2, ..., xn), could you find 
an efficient ALGORITHM to get minimum M and  an integer vector
(y1, y2, ..., yn) so that the following holds: 
(1). (y1, ..., yn) is a PERMUTATION VECTOR from [0, M-1]: 
     yi does not equal to yj, if i does not equal to j; 
     all yi belongs to [0,M-1];
(2)  ((x1+y1) mod M, (x2+y2) mod M, ..., (xn+yn) mod M) is also a 
     PERMUTATION VECTOR from [0, M-1] as defined above. 

-----------------------

because (x1, x2, ..., xn) is equivalent to (x1+1, x2+2, ..., xn+n) 
in term of finding M and solution, we can assume xi>=0 for 1<=i<=n.

I can get some kind of upper-bound about M, such as 
n+max{xi}-min{xi}. 

A follow-up question is, for multiple integer vectors, find out
common M and vector Y which has the same property. This question 
is most interesting to me. 

could anyone point some references about it? it looks like so 
plain! any results in PERMUTATION GROUP can help? 

I guess it is NP-complete. Any NP-complete problem in the similiar
manner? 




-- 
Duanyang Guo	Computer Science Department, Columbia University
Technical Details
Message-ID: <BzFt63.DEz@cs.columbia.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!sol.ctr.columbia.edu!news.cs.columbia.edu!duanyang

Show Full Headers
Complete Article Headers
Newsgroups: comp.theory,cs.bboard,cs.research
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!sol.ctr.columbia.edu!news.cs.columbia.edu!duanyang
From: duanyang@cs.columbia.edu (Duanyang Guo)
Subject: a problem
Message-ID: <BzFt63.DEz@cs.columbia.edu>
Sender: news@cs.columbia.edu (The Daily News)
Organization: Columbia University Department of Computer Science
Date: Fri, 18 Dec 1992 04:15:38 GMT
Lines: 35