Sign inSign in
ConceptMathematics

De Bruijn sequence

A constant used with multiplication and bit shifting to find the index of a set bit in a power of 2 in O(1) time.
Watch it explained

Know first

Named as a prerequisite by the lectures that define this. The number is how many say so. A grey one has no page yet.

Bit sequence1Bitwise shifting1Combinatorics1Hash tables or lookup tables1Sequence1Substring1

Lecturers

2

Each in their own terms, from the easiest level.

  • Manjul Bhargava

    Princeton University · Undergraduate

    A cyclic sequence of a given alphabet in which every possible subsequence of a given length appears as a sequence of consecutive characters exactly once.
    • 1:01:42Poetry, Drumming, and Mathematics

Connections

3

The lectures that define it or assume it, and the concepts next to it.

Concept1

Lectures2

2 lecturers. Definitions are written by AI from each lecture’s transcript. A time with a play mark starts the lecture at the moment the lecturer says it.