AAAbbas Alhakim

Abbas Alhakim

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Abbas Alhakim has a total of 7 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Efficient Constructions of the Prefer-Same and Prefer-Opposite de Bruijn Sequences

    by Evan Sala, Joe Sawada, Abbas Alhakim

    The greedy Prefer-same de Bruijn sequence construction was first presented by Eldert, Gray, Gurk, and Rubinoff in 1958. As a greedy algorithm, it has one major downside: it requires an exponential amount of space to store the length \(2^{n}\) de Bruijn sequence. Though de Bruijn sequences have been heavily studied over the last 60 years, finding an efficient construction for the Prefer-same de Bruijn sequence has remained a tantalizing open problem. In this article, we unveil the underlying structure of the Prefer-same de Bruijn sequence and solve the open problem by presenting an efficient algorithm to construct it using \(O(n)\) time per bit and only \(O(n)\) space. Following a similar approach, we also present an efficient algorithm to construct the Prefer-opposite de Bruijn sequence.


  • Open Access

    Orientable sequences over non-binary alphabets

    by Abbas Alhakim, Chris J. Mitchell, Janusz Szmidt, Peter R. Wild

    We describe new, simple, recursive methods of construction for orientable sequences over an arbitrary finite alphabet, i.e. periodic sequences in which any sub-sequence of n consecutive elements occurs at most once in a period in either direction. In particular we establish how two variants of a generalised Lempel homomorphism can be used to recursively construct such sequences, generalising previous work on the binary case. We also derive an upper bound on the period of an orientable sequence.


  • Open Access

    Multi de Bruijn Sequences and the Cross-Join Method

    by Abbas Alhakim, Janusz Szmidt

    We show a method to construct binary multi de Bruijn sequences using the cross-join method. We extend the proof given by Alhakim for ordinary de Bruijn sequences to the case of multi de Bruijn sequences. In particular, we establish that all multi de Bruijn sequences can be obtained by cross-joining an ordinary de Bruijn sequence concatenated with itself an appropriate number of times. We implemented the generation of all multi de Bruijn sequences of type C(2,2,2) and C(3,2,2). We experimentally confirm that some multi de Bruijn sequences can be generated by Galois Nonlinear Feedback Shift Registers (NLFSRs). It is supposed that all multi de Bruijn sequences can be generated using Galois NLFSRs.

  • Open Access

    Nonbinary Counterparts of the Prefer-Same and Prefer-Opposite de Bruijn Sequences

    by Abbas Alhakim

    The well known prefer-one, prefer-opposite, and prefer-same binary de Bruijn sequences are all constructed using simple preference rules. We apply the technique of preference functions of span one to define q-ary sequences that generalize the prefer-opposite and prefer-same sequences and we present some of their basic properties that are shared with their binary versions. In particular, we show that the prefer-higher sequence (the nonbinary counter-part of the prefer-one sequence) is obtained from a homomorphic image of the proposed prefer-opposite, when repetitions are cleaned up. This mirrors a known relationship between the binary versions. We also perform calculations that demonstrate that the discrepancy profile of the proposed sequences is similar to that of the binary case.

  • Open Access

    Hamiltonicity of the Cross-Join Graph of de Bruijn Sequences

    by Abbas Alhakim

    A generalized de Bruijn digraph generalizes a de Bruijn digraph to the case where the number of vertices need not be a pure power of an integer. Hamiltonian cycles in these digraphs thus generalize regular de~Bruijn cycles, and we will thus refer to them simply as de Bruijn cycles. We define the cross-join to be the graph with all de Bruijn cycles as vertices, there is an edge between two of these vertices if one can be obtained from the other via a cross-join operation. We show that the cross-join graph is connected. This in particular means that any regular de Bruijn cycle can be cross-joined repeatedly to reach any other de Bruijn cycle, generalizing a result about regular binary de Bruijn cycles by Mykkeltveit and Szmidt in 2014. Furthermore, we present an algorithm that produces a Hamiltonian path across the cross-join graph, one that we may call a de~Bruijn sequence of de Bruijn sequences.

  • Open Access

    Hadamard Matrices, Quaternions, and the Pearson Chi-square Statistic

    by Abbas Alhakim

    We present a symbolic decomposition of the Pearson chi-square statistic with unequal cell probabilities, by presenting Hadamard-type matrices whose columns are eigenvectors of the variance-covariance matrix of the cell counts. All of the eigenvectors have non-zero values so each component test uses all cell probabilities in a way that makes it intuitively interpretable. When all cell probabilities are distinct and unrelated we establish that such decomposition is only possible when the number of multinomial cells is a small power of 2. For higher powers of 2, we show, using the theory of orthogonal designs, that the targeted decomposition is possible when appropriate relations are imposed on the cell probabilities, the simplest of which is when the probabilities are equal and the decomposition is reduced to the one obtained by Hadamard matrices. Simulations are given to illustrate the sensitivity of various components to changes in location, scale skewness and tail probability, as well as to illustrate the potential improvement in power when the cell probabilities are changed.

  • Stretching de Bruijn sequences

    by Abbas Alhakim, Maher Nouiehed


  • Open Access

    Spans of Preference Functions for De Bruijn Sequences

    by Abbas Alhakim

    A nonbinary Ford sequence is a de Bruijn sequence generated by simple rules that determine the priorities of what symbols are to be tried first, given an initial word of size $n$ which is the order of the sequence being generated. This set of rules is generalized by the concept of a preference function of span $n-1$, which gives the priorities of what symbols to appear after a substring of size $n-1$ is encountered. In this paper we characterize preference functions that generate full de Bruijn sequences. More significantly, We establish that any preference function that generates a de Bruijn sequence of order $n$ also generates de Bruijn sequences of all orders higher than $n$, thus making the Ford sequence no special case. Consequently, we define the preference function complexity of a de Bruijn sequence to be the least possible span of a preference function that generates this de Bruijn sequence.