A GREEDY HYPERCUBE-LABELING ALGORITHM

Citation
D. Bhagavathi et al., A GREEDY HYPERCUBE-LABELING ALGORITHM, Computer journal, 37(2), 1994, pp. 124-128
Citations number
19
Categorie Soggetti
Computer Sciences","Computer Science Hardware & Architecture
Journal title
ISSN journal
00104620
Volume
37
Issue
2
Year of publication
1994
Pages
124 - 128
Database
ISI
SICI code
0010-4620(1994)37:2<124:AGHA>2.0.ZU;2-5
Abstract
Due to its attractive topological properties, the hypercube multiproce ssor has emerged as one of the architectures of choice when it comes t o implementing a large number of computational problems. In many such applications, Gray-code labelings of the hypercube are a crucial prere quisite for obtaining efficient algorithms. We propose a greedy algori thm that, given an n-dimensional hypercube H with N = 2(2) nodes, retu rns a Gray-code labeling of H, that is, a labeling of the nodes with b inary strings of length n such that two nodes are neighbors in the hyp ercube if, and only if, their labels differ in exactly one bit. Our al gorithm is conceptually very simple and runs in O(N log N) time being, therefore, optimal. As it turns out, with a few modifications our lab eling algorithm can be used to recognize hypercubes as well.