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, 22.06.2019 04:30
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
I'm taking a class on how to make a movie, and it offers some apps that would be in the process. the thing is, i don't have any of those ha. if you have any tips on some apps i could use, that would be awesome. i don't have an iphone, so don't suggest any apps like imovie. i know that this is a weird question, but it would be super for me. : )
Answers: 2
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
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, 26.05.2020 01:58
question
English, 26.05.2020 01:58
Questions on the website: 13722363