SYBCS DS Assignment 2

Sorting Techniques (Recursive) 

Set A 

a) Sort a random array of n integers (accept the value of n from user) in ascending order by using a recursive Merge sort algorithm. 

b) Sort a random array of n integers (accept the value of n from user) in ascending order by using recursive Quicksort algorithm. 

Set B

a) Read the data from the ‘employee.txt’ file and sort on age using Merge sort/ Quicksort and write the sorted data to another file 'sortedemponage.txt'.

  1. Merge sort
  2. Quicksort

Post a Comment

1 Comments