Sort a given set of n integer elements using Selection Sort method. analysis worst case average case and best case.
1] Sort a given set of n integer elements using Selection Sort method and compute its timecomplexity. Run the program for varied values of n> 5000 and record the time…