Welcome to the Merge Sort Analyzer console application! This program analyzes the performance of the Merge Sort algorithm in two versions: the normal version and the smart version.
- This version uses the classic implementation of the Merge Sort algorithm.
- It divides the array into two halves, recursively sorts them, and then merges the sorted halves.
- This version includes an optimization for arrays of size 2.
- If the array size is 2, it directly compares and swaps the elements if necessary.
- Generate and Analyze:
- The application generates arrays of different sizes (from 2 to 1000 with a step of 1).
- It applies both normal and smart Merge Sort algorithms to analyze their performance.
- The results, including array size and execution time, are saved in the
data.txt
file.
- Run the application.
- The program will automatically generate arrays and apply both normal and smart Merge Sort algorithms.
- View the results in the
data.txt
file. - Exit the application when you are done.
Feel free to explore and analyze the efficiency of different Merge Sort implementations with this console application!