public SortResults Estimate(eArraySortAlgorithms sortAlgorithm, eArrayDataProviders searchDataProvider) { var _sort = GetSort(sortAlgorithm); var _searchData = new DataProvidersFactory(SampleSize).GetProvider(searchDataProvider); return(_sort.Sort(_searchData.Data)); }
public SearchResults Estimate(eArraysSearchAlgorithms searchAlgorithm, eArrayDataProviders searchDataProvider) { var _search = GetSearch(searchAlgorithm); var _searchData = new DataProvidersFactory(SampleSize).GetProvider(searchDataProvider); var searchResults = new SearchResults() { ArrayCount = _searchData.Data.Count }; searchResults.MinValue = _search.Find(_searchData.Data, _searchData.MinValue); searchResults.AvgValue = _search.Find(_searchData.Data, _searchData.AvgValue); searchResults.MaxValue = _search.Find(_searchData.Data, _searchData.MaxValue); searchResults.RandomValue = _search.Find(_searchData.Data, _searchData.RandomValue); searchResults.NotFoundValue = _search.Find(_searchData.Data, _searchData.NotFoundValue); return(searchResults); }