Arama butonu
Bu konudaki kullanıcılar: 1 misafir
0
Cevap
242
Tıklama
0
Öne Çıkarma
C uzerinde file operations ve sort tabanli zor olmayan ve uzun olmayan odev (teslim suresi yarina)
B
4 yıl
Er
Konu Sahibi

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:
     > XSort unsortedData.txt sortedData.Txt B=5 P=32
Sort operation will take 3 phases.
Phase 0: 8 sorted segment created initially
Phase 1: 2 merged segments created
Phase 2: Final sorted file has been created.
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
  • ● The assignment must be coded in C.
  • ● You must write your code according to Replacement Selection Sort rules.
  • ● You should input Disk Page Size and Number of Buffers dynamically as an argument. 

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
  • ● Name your source code file xxx.c, where xxx is your student id. If you don’t follow the naming rules, a penalty applies. (10 pts)
  • ● Late submission is accepted but, 10 points penalty applies for each day. 



DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.