|
CkPttn 1.2.4
|
Tree data structure for mid-level Gray code algorithm. More...
#include <tree.hpp>
Public Member Functions | |
| MidTree (const MidVertex &x) | |
| Construct a MidTree from a MidVertex bitstring. | |
| bool | flip_tree () |
| Perform a flip-tree operation (tau transformation) | |
| void | rotate () |
| Rotate the tree to a canonical form. | |
| void | to_bitstring (int x[]) const |
| Convert the tree to a bitstring representation. | |
Tree data structure for mid-level Gray code algorithm.
Represents a rooted tree with children lists used in the middle-levels Gray code algorithm. Supports tree rotations, flip operations, and bitstring conversion for generating Hamiltonian cycles.
|
explicit |
| bool MidTree::flip_tree | ( | ) |
Perform a flip-tree operation (tau transformation)
| void MidTree::rotate | ( | ) |
Rotate the tree to a canonical form.
| void MidTree::to_bitstring | ( | int | x[] | ) | const |
Convert the tree to a bitstring representation.
| [out] | x | Output bitstring array |