static void Test() { var bst = new BinarySearchSTAnalysis <string, int>(); var dataBinary = FrequencyCounter.MostFrequentlyWordAnalysis("tale.txt", 8, bst); var resultBinary = new Form2(); resultBinary.Text = "BinarySearch"; resultBinary.Show(); resultBinary.Draw(dataBinary); var sst = new SequentialSearchSTAnalysis <string, int>(); var dataSequential = FrequencyCounter.MostFrequentlyWordAnalysis("tale.txt", 8, sst); var resultSequential = new Form2(); resultSequential.Text = "Sequential"; resultSequential.Show(); resultSequential.Draw(dataSequential); }
void Test() { var bst = new BinarySearchSTAnalysis <string, int>(); FrequencyCounter.MostFrequentlyWordAnalysis("tale.txt", 8, bst, out var callIndexBinary, out var timeRecordBinary); var resultBinary = new Form2(); resultBinary.Text = "BinarySearch"; resultBinary.Show(); resultBinary.Draw(callIndexBinary, timeRecordBinary); var sst = new SequentialSearchSTAnalysis <string, int>(); FrequencyCounter.MostFrequentlyWordAnalysis("tale.txt", 8, sst, out var callIndexSequential, out var timeRecordSequential); var resultSequential = new Form2(); resultSequential.Text = "Sequential"; resultSequential.Show(); resultSequential.Draw(callIndexSequential, timeRecordSequential); }