26#ifndef __Searchable_h__
27#define __Searchable_h__
Interface for the first normal form sorting network C1NF.
#define MAXDEPTH
Maximum depth.
Interface for the matching CMatching.
Sorting network in first normal form.
Searchable sorting network.
size_t m_nTop
Topmost level.
size_t m_nCount
Number of comparator networks found that sort.
size_t m_nNumMatchings
Number of matchings of this size.
virtual void Backtrack()
Backtracking search.
void InitMatchingRepresentations(size_t)
Initialize the two different matching representations.
CSearchable()
Constructor.
virtual void Save()
Save comparator network.
virtual void SetToS()
Set top of stack.
int m_nStack[MAXDEPTH]
Stack to remove recursion from search.
CMatching m_cMatching[MAXDEPTH]
Matchings that make up comparator network in a form that makes searching faster.
virtual void Process()
Process a candidate comparator network.
bool NextComparatorNetwork()
Change to next comparator network.
void SynchMatchingRepresentations(size_t)
Synchronize the two different matching representations.
void FirstComparatorNetwork(size_t)
Set to first comparator network.
void Search()
Do the actual search.
const size_t GetCount() const
Get count.