Executes the merge sort algorithm with a randomly generated list. Time Complexity: O(n log n)
()
| 33 | |
| 34 | |
| 35 | def main(): |
| 36 | """ |
| 37 | Executes the merge sort algorithm with a randomly generated list. |
| 38 | Time Complexity: O(n log n) |
| 39 | """ |
| 40 | rand_num_li = generate_random_list() |
| 41 | print(f"Unsorted List: {rand_num_li}") |
| 42 | sorted_list = merge_sort(rand_num_li) |
| 43 | print(f"Sorted List: {sorted_list}") |
| 44 | |
| 45 | |
| 46 | if __name__ == '__main__': |
no test coverage detected