Merhaba C uzerinde file operations ve sorting algorithm tabanli odevim var 15 haziran gecesi teslimi gereken ben bir sonuca varamiyorum ve hayati onem tasiyor. Ucreti karsiliginda odevimi yapacak bir arkadas ariyorum. Buradan belgeyi dogrudan paylasamiyorum ancak ozelden gerekli belgeleri paylasacagim. Assignment#2: External Sort with Replacement Selection Algorithm Due date: 15th June, 23:59 Goal In this assignment you are asked to write a computer program in C that reads a given text file and sorts it using the Sort-Merge approach and the Replacement Selection Sort to order the initial sorted segment. The program should be a console application and accept command line arguments as follows:
The name of the program is XSort and and should accept three parameters. The first one is the name of the input file which contains the data to be sorted. The second one is the name of the output file where sorted data to be stored. The next, B, is the number of buffers to be used in Merge phases. The last one, P, is the page size in KB. The program should also give some information about the phases which are executed. You can use the structure given below in your coding. The sorting should be done by taking the “id” parameter of the record into account. struct record { int id; int grade; char name[15]; char surname[15]; char email[26]; }; Implementation Requirements
Documentation In this assignment, in line documentation is expected, as well as good coding practices such as consistent naming, proper usage of indentation and high readability of code. Submission
|
Bildirim