Better HN
topnewbestaskshowjobs
Log inSign up

apitheia

4 karma · joined Nov 23, 2014 (12y ago) · 3 submissions

Submissions

comment 11y ago · link · parent

This actually reminds me more of Simon Tatham's Range[1].

[1] http://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/range...

comment 12y ago · link · parent

With ternary grey code, only one digit is changed at a time, but sometimes that change can be more than one value, why isn't ternary ordered so that each digit only changes by at most 1 number? for example:

   0 → 000 | 000
   1 → 001 | 001
   2 → 002 | 002
  10 → 012 | 012
  11 → 010 | 011
  12 → 011 | 010
  20 → 021 | 020
  21 → 022 | 021
  22 → 020 | 022
 100 → 120 | 122
 101 → 121 | 121
 102 → 122 | 120
 110 → 102 | 110
 111 → 100 | 111
 112 → 101 | 112
 120 → 111 | 102
 121 → 112 | 101
 122 → 110 | 100
 200 → 210 | 200
 201 → 211 | 201
 202 → 212 | 202
 210 → 222 | 212
 211 → 220 | 211
 212 → 221 | 210
 220 → 201 | 220
 221 → 202 | 221
 222 → 200 | 222