Battle #2: Rules
For this battle you will write a sorting algorithm. The complete program should accept a file path argument (or allowing selecting a path) and parse a CSV File. The CSV file will contain at most 20 lines and each line will have data in the following format:
integer(comma)String Wrapped in Double Quotes(comma)integer
An example:
20,"ABCDE",30
Your sorting algorithm will need to sort by the first integer, string ("ABC" should be listed before "ABCD") and the second integer.
If your program was given this file:
19,"DEF",21 19,"ABC",10 4,"XYZ",59 4,"XYZ",47 98,"String Value",1234
It should be sorted into:
4,"XYZ",47 4,"XYZ",59 19,"ABC",10 19,"DEF",21 98,"String Value",1234
Judging
The judges will analyze performance on several source files to probe for weaknesses in the algorithm. This battle will be judged by the forum staff using a voting system similar to Battle #1. This means that moderators and admins cannot participate in this battle. We will attempt to trip your algorithm up by using known sorting weaknesses. You should keep this in mind when building your algorithm and learn what weaknesses exist.
Submissions
Submissions must include source code and either directions for compiling or a compiled version. You will need to send the submissions to me via email. Please zip the source and the compiled versions in separate files. My email address is my username @codecall.net.
Duration
Submission must be handed in by November 15th. That is 14 days from now so you have plenty of time.
Compete
If you want to participate in this battle please reply to this thread with the language you will be building your algorithm in.
Reward
The winner will receive a +rep from two of the mods/admins (~40 +rep). Runner-up will receive +rep from one of the mods/admins (~20 +rep).
Do not use any built-in sorting functions! Your algorithm should be your own.


Sign In
Create Account

Guest_Jordan_*
Back to top











