DocumentCode :
794172
Title :
A circular binary search
Author :
Arazi, Benjamin
Author_Institution :
Dept. of Electr. & Comput. Eng., Ben Gurion Univ., Beer Sheva, Israel
Volume :
41
Issue :
1
fYear :
1992
fDate :
1/1/1992 12:00:00 AM
Firstpage :
109
Lastpage :
112
Abstract :
In a standard binary search, the binary representation of the index of an element in an ordered linear array is recovered serially bit by bit. For an array of N elements, the index of an element is recovered, in principle, by assigning to each element one value out of log2 N possibilities. It is shown here that by arranging 2n-1 elements in a circular array, the bits of the binary representation of the index of an element are all recovered simultaneously based n assigning to each element one value out of two possibilities. The main theoretical result shows that the parity of an integer X is trivially recovered from the parity of the Hamming weight of the binary representation of X, X+1, X +2, and X+3, whereas, on the other hand, the parity of the Hamming weight of the binary representation of an integer is consistent with modular arithmetic considerations
Keywords :
codes; digital arithmetic; search problems; Hamming weight; binary representation; circular array; circular binary search; modular arithmetic; ordered linear array; parity; Arithmetic; Galois fields; Hamming weight; Indexing;
fLanguage :
English
Journal_Title :
Computers, IEEE Transactions on
Publisher :
ieee
ISSN :
0018-9340
Type :
jour
DOI :
10.1109/12.123386
Filename :
123386
Link To Document :
بازگشت