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.Kod
Yığını:
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.
Son Giriş: 3 yıl önce
Son Mesaj Zamanı: 3 yıl
Mesaj Sayısı: 1
Gerçek Toplam Mesaj Sayısı: 1
İkinci El Bölümü Mesajları: 0
Konularının görüntülenme sayısı: 206 (Bu ay: 3)
Toplam aldığı artı oy sayısı: 0 (Bu hafta: 0)
En çok mesaj yazdığı forum bölümü: Yazılım Geliştirme