subject

Write sort. c program, it will be run from the command line as follows:
$ ./sort -s 3 -i numbers. txt -o sorted. txt
$ algorithm: merge sort, #integers: 1024, elapsed time: 0s 333ms
sort: name of your program (executable file name)

-s 3: sorting algorithm to use (see below)
-i numbers. txt: input text file, to be sorted by the program
-o sorted. txt: output text file, sorted numbers are saved to this file
sorting algorithms :
0: bubble sort
1: insertion sort
2: selection sort
3: merge sort
4: heapsort
5: quicksort
you should implement these sorting algorithms in your code; you are not
allowed to use the sorting algorithms in any library.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
In which view can you see speaker notes?
Answers: 1
You know the right answer?
Write sort. c program, it will be run from the command line as follows:
$ ./sort -s 3 -i numb...
Questions
question
Mathematics, 29.11.2019 07:31
question
Mathematics, 29.11.2019 07:31
question
Mathematics, 29.11.2019 07:31
question
Mathematics, 29.11.2019 07:31
question
Mathematics, 29.11.2019 07:31