com.jake
Interface AlgorithmClassifier


public interface AlgorithmClassifier

Interface for an automatic classifier of a "mystery data structure".


Method Summary
 DataStructureType deduceDataStructure(Collection12 collection)
          Analyzes the specified "mystery data structure" using whatever empirical testing is required, and returns the data structure type.
 

Method Detail

deduceDataStructure

DataStructureType deduceDataStructure(Collection12 collection)
Analyzes the specified "mystery data structure" using whatever empirical testing is required, and returns the data structure type.

This method must be implemented using time cost analysis -- it cannot use Java reflection or any other mischievous type-checking to determine the data structure type.

Parameters:
collection - the mystery data structure
Returns:
the data structure type.