Shift gray codes
Combinatorial objects can be represented by strings, such as 21534 for the permutation (1 2) (3 5 4), or 110100 for the binary tree corresponding to the balanced parentheses (()()). Given a string s = s1 s2 sn, the right-shift operation shift(s, i, j) replaces the substring si si+1..sj by si+1..sj s...
Main Author: | |
---|---|
Other Authors: | |
Language: | English en |
Published: |
2009
|
Subjects: | |
Online Access: | http://hdl.handle.net/1828/1966 |