Interface for the fast searchable sorting network CAutocomplete.
#define MAXINPUTS
Maximum width, that is, number of inputs.
Searchable second normal form sorting network with autocomplete.
Searchable sorting network with nearsort.
bool Nearsorts()
Does it nearly sort?
bool m_bReachableTo[MAXINPUTS][MAXINPUTS]
Reachable to.
void SetToS()
Set top of stack.
bool m_bReachable[MAXINPUTS][MAXINPUTS]
Reachable from or to.
bool EvenNearsorts()
Does it nearly sort, even number of inputs?
CNearsort(CMatching &, const size_t)
Constructor.
int m_nReachCountTo[MAXINPUTS]
Count of channels reachable to.
int m_nReachCount[MAXINPUTS]
Count of channels reachable from or to.
void Process()
Process a candidate comparator network.
bool StillNearsorts(const size_t)
Does it still nearsort with this input change?
int m_nReachCountFrom[MAXINPUTS]
Count of channels reachable from.
bool m_bReachableFrom[MAXINPUTS][MAXINPUTS]
Reachable from.