Hamming Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: Generating hamming codesGenerate a Hamming code that fits in b-bit words to code n symbols where the Hamming distance between every two symbol codes is at least d. The Hamming distance between to words is the number of bit positions where they differ.
This instance fixes b to 20 and d to 3.
Definition at line 41 of file hamming.cc.
Public Member Functions | |
Hamming (const Options &o) | |
Hamming (bool share, Hamming &s) | |
virtual Space * | copy (bool share) |
Copying member function. | |
virtual void | print (void) |
Public Attributes | |
SetVarArray | xs |
Static Public Attributes | |
static const int | bits = 20 |
static const int | dist = 3 |
Constructor & Destructor Documentation
|
Definition at line 48 of file hamming.cc. |
|
Definition at line 78 of file hamming.cc. |
Member Function Documentation
|
Copying member function. Must create a new object using the constructor for cloning. Implements Gecode::Space. Definition at line 83 of file hamming.cc. |
|
Reimplemented from Example. Definition at line 88 of file hamming.cc. |
Member Data Documentation
|
Definition at line 43 of file hamming.cc. |
|
Definition at line 45 of file hamming.cc. |
|
Definition at line 46 of file hamming.cc. |
The documentation for this class was generated from the following file:
- examples/hamming.cc (Revision: 3506)