PA_01_2008_Fall - n of input data i 1(data to sort i 2 i 3...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS300 Algorithm Programming Assignment #1 Implementing sorting algorithms GOAL Implement various sorting algorithms. Programming Requirements Language: only C (C++ is not allowed.) Requirements (a) Implement all of the sorting algorithms you’ve learned in this lecture. • Insertion sort • Quick sort • Merge sort • Heap sort • Shell sort • Radix sort (b) Menu-driven interface. Each algorithm has to be selected by menu. Example: Select an algorithm you want to execute. 1. insertion sort 2. quick sort 3. merge sort ……………… 0. exit Select : (c) Input file name is “input.dat”. File format is as follows.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n (# of input data) i 1 (data to sort) i 2 i 3 i 4 … i n WARNING) File name and format MUST NOT be changed. The input data for radix sort have to be 4 digit numbers. (d) You should print out the intermediate steps of each sorting algorithm. Due date Nov 5 th . 23:59 p.m. Send to [email protected] your source code, executable file, documentation. E-Mail title format: [CS300 PA01 by 20040001] Explanation of your code and method of compilation have to be contained in your documentation file. No delay is allowed...
View Full Document

This note was uploaded on 02/04/2010 for the course COMPUTER S cs300 taught by Professor Unkown during the Spring '08 term at Korea Advanced Institute of Science and Technology.

Page1 / 2

PA_01_2008_Fall - n of input data i 1(data to sort i 2 i 3...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online