# Conservative Hex Drift Machine

Initializing live version Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

A machine that returns four bits for translated hexadecimals while keeping the number of 1-bits constant is called a conservative hex drift machine.

[more]

An initial 2D array of bits is translated according to a drift vector that specifies shifts along the two axes. The array is then partitioned into square arrays of size 2. Without drift local quartets evolve in isolation.

Each quartet of bits is transduced into the same number of bits at new quartet positions according to a rule given by 16 base-16 digits. These 16 digits of the rule are represented by a rule icon that represents each base-16 digit by the hue of a pixel.

A byte machine rule is conservative if the number of 1-bits in each rule digit is equal to the number of 1-digits in its Wolfram rule-order digit-position. Choose permutations of conservative replacement rules which mix all possible loops or select a list of rules from the wider ranges of arbitrary conservative replacements. Try to direct the drift vector while compensating its visual effect.

The fourteen rule icons between the controls and the main image are ordered and divided according to their digit-sums. This subdivision of the rule icons corresponds to the effects of the controls which select from loop rules or ordinary conservative rules. The selected 1-loop rule specifies what permutation of all the 24 permutations of the four digits in the binary number 1000 defines the particular rules for each hex containing just one 1-bit. Similarly an 11-loop rule specifies one permutation of all the permutations of the bits in the binary number 1100, etc. The non-loop rules permit arbitrary selections of four right-hand-side hex configurations from the 24 permutations of the digits in binary number 1000, thus allowing selective rules that, for instance, take all hex values with only one 1-bit to only one particular one 1-bit hex configuration.

[less]

Contributed by: Michael Schreiber (March 2011)
Open content licensed under CC BY-NC-SA

## Snapshots ## Details

There are driftable hex machines. Among those 18446744073709551616 rules, the number of distinct conservative rules is 3057647616. The number of loop rules is 24×720×24 = 414720.

## Permanent Citation

Michael Schreiber

 Feedback (field required) Email (field required) Name Occupation Organization Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback. Send
{"ft_lang_label":"__label__en","ft_lang_prob":0.8404789,"math_prob":0.8985541,"size":2521,"snap":"2021-43-2021-49","text_gpt3_token_len":545,"char_repetition_ratio":0.13706794,"word_repetition_ratio":0.005181347,"special_character_ratio":0.21340738,"punctuation_ratio":0.06546275,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9820046,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,null,null,null,null,5,null,5,null,5,null,5,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-26T18:05:00Z\",\"WARC-Record-ID\":\"<urn:uuid:16e03e11-fabe-4d35-bba7-84efb537eec9>\",\"Content-Length\":\"145896\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:65bfe704-8c5d-4a03-8df0-b88c8c3b695c>\",\"WARC-Concurrent-To\":\"<urn:uuid:3521833a-dfb4-40f5-b720-cde08515bb25>\",\"WARC-IP-Address\":\"140.177.205.90\",\"WARC-Target-URI\":\"https://demonstrations.wolfram.com/ConservativeHexDriftMachine/\",\"WARC-Payload-Digest\":\"sha1:KSRMH4KGGG66Q7YGUNVP6JYXNLUTPEVN\",\"WARC-Block-Digest\":\"sha1:I7HFTWKL3ZMNL4W5BCP3MPBFWKGUZEP2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323587915.41_warc_CC-MAIN-20211026165817-20211026195817-00045.warc.gz\"}"}