Docsity

Assignment Program 1 - Algorithm Design | CSCI 532, Assignments of Computer Science

Toggle sidebar
bg1
Assignment Program 1:
Write a program to implement the following algorithms:
1. Insertion Sort;
2. Merge Sort;
3. Quick Sort;
4. Shell Sort.
You may use Java, C++ or C Sharp to code the program.
If (LID)MOD 4 = 1 you have to code only the 1st program;
If (LID)MOD 4 = 2 you have to code only the 2nd program;
If (LID)MOD 4 = 3 you have to code only the 3rd program;
If (LID)MOD 4 = 0 you have to code only the 4th program.
INPUT:
On the top of a clear screen you have to write your name, LID (List ID) and SID.
Prompt the user to enter set of integers.
OUTPUT:
Below the input data, print out the ordered numbers.
On a separate row print the time taken to run the experiment.
Extra Credit Points will be given for good and reasonable extra features.
The program is due October 21, 2008 in the beginning of the class.
On a CD or a floppy disc you have to turn the source code together with the executable file.

Partial preview of the text

Download Assignment Program 1 - Algorithm Design | CSCI 532 and more Assignments Computer Science in PDF only on Docsity!

Assignment Program 1:

Write a program to implement the following algorithms:

  1. Insertion Sort;
  2. Merge Sort;
  3. Quick Sort;
  4. Shell Sort. You may use Java, C++ or C Sharp to code the program. If (LID)MOD 4 = 1 you have to code only the 1 st program; If (LID)MOD 4 = 2 you have to code only the 2nd^ program; If (LID)MOD 4 = 3 you have to code only the 3rd^ program; If (LID)MOD 4 = 0 you have to code only the 4 th program. INPUT: On the top of a clear screen you have to write your name, LID (List ID) and SID. Prompt the user to enter set of integers. OUTPUT: Below the input data, print out the ordered numbers. On a separate row print the time taken to run the experiment. Extra Credit Points will be given for good and reasonable extra features. The program is due October 21, 2008 in the beginning of the class. On a CD or a floppy disc you have to turn the source code together with the executable file.