Welcome!
To use the personalized features of this site, please log in or register.
If you have forgotten your username or password, we can help.
My Menu
Saved Items

Contributed Papers: Design and Analysis Track

Necklaces, Convolutions, and X + Y

David BremnerContact Information, Timothy M. ChanContact Information, Erik D. DemaineContact Information, Jeff EricksonContact Information, Ferran HurtadoContact Information, John IaconoContact Information, Stefan LangermanContact Information and Perouz TaslakianContact Information

(1)  Faculty of Computer Science, University of New Brunswick, Fredericton, New Brunswick, Canada
(2)  School of Computer Science, University of Waterloo, Waterloo, Ontario, Canada
(3)  Computer Science and Artificial Intelligence Laboratory, Massachusetts Institute of Technology, Cambridge, MA, USA
(4)  Computer Science Department, University of Illinois, Urbana-Champaign, IL, USA
(5)  Departament de Matemàtica Aplicada II, Universitat Politècnica de Catalunya, Barcelona, Spain
(6)  Department of Computer and Information Science, Polytechnic University, Brooklyn, NY, USA
(7)  Chercheur qualifié du FNRS, Départment d’Informatique, Université Libre de Bruxelles, Brussels, Belgium
(8)  School of Computer Science, McGill University, Montréal, Québec, Canada
Abstract
We give subquadratic algorithms that, given two necklaces each with n beads at arbitrary positions, compute the optimal rotation of the necklaces to best align the beads. Here alignment is measured according to the ℓp norm of the vector of distances between pairs of beads from opposite necklaces in the best perfect matching. We show surprisingly different results for p=1, p=2, and p=∞. For p=2, we reduce the problem to standard convolution, while for p=∞ and p=1, we reduce the problem to (min,+) convolution and (median,+) convolution. Then we solve the latter two convolution problems in subquadratic time, which are interesting results in their own right. These results shed some light on the classic sorting X + Y problem, because the convolutions can be viewed as computing order statistics on the antidiagonals of the X + Y matrix. All of our algorithms run in o(n2) time, whereas the obvious algorithms for these problems run in Θ(n2) time.

Contact Information David Bremner
Email: bremner@unb.ca

Contact Information Timothy M. Chan
Email: tmchan@uwaterloo.ca

Contact Information Erik D. Demaine
Email: edemaine@mit.edu

Contact Information Jeff Erickson
Email: jeffe@cs.uiuc.edu

Contact Information Ferran Hurtado
Email: Ferran.Hurtado@upc.es

Contact Information John Iacono

URL: http://john.poly.edu

Contact Information Stefan Langerman
Email: stefan.langerman@ulb.ac.be

Contact Information Perouz Taslakian
Email: perouz@cs.mcgill.ca
Fulltext Preview (Small, Large)
Image of the first page of the fulltext


Export this chapter
Export this chapter as RIS | Text
 
Referenced by
1 newer article

  1. Jiang, Minghui (2007) A Linear-Time Algorithm for Hamming Distance with Shifts. Theory of Computing Systems
    [CrossRef]
Remote Address: 38.107.191.113 • Server: mpweb07
HTTP User Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)