<<  >> (p.426)
    Author Topic: Bitcoin puzzle transaction ~32 BTC prize to who solves it  (Read 331722 times)
    kTimesG
    Full Member
    ***
    Offline Offline

    Activity: 574
    Merit: 198


    View Profile
    April 02, 2025, 11:27:44 AM
     #8501

    Combinations can be indexed, as long as they are traversed in a ascending or descending order.

    This allows associating a stable index (from 1 to comb(n, k)) to every combination. Can be used as a basis for saving progress.

    I actually did this for some other project a while ago, simply for making saving more efficient (store the index instead of a full combination).

    There is only one problem though: while creating the index from a combination is straightforward, creating back the combination from an index is a binary search process.

    https://en.wikipedia.org/wiki/Combinatorial_number_system

    Off the grid, training pigeons to broadcast signed messages.
Page 425
Viewing Page: 426