검색결과 리스트
글
1. Our textbook introduces another sorting algorithm
called rank sort at page 80. Make a rank sort program that sorts
students by their name and print their scores along side the names in
the sorted order. Student names and scores must be included in a Student
object. The data are input through keyboard and the number of students
is flexible (use a sentinel). Analyze the best case, worst case and
average case space and time complexity of the program you made. For time
complexity, use both “counting the comparison operations” and “counting
the steps with the s/e and frequency table” approaches.
2. Modify the program for problem 1 by replacing the sorting algorithm with bubble sort, insert sort and selection sort. Also, you have to analyze the best, worst and average case space and time complexity of each version.
* The source codes, analysis results and screen shots of your programs in working have to be prepared in a PDF file.
2. Modify the program for problem 1 by replacing the sorting algorithm with bubble sort, insert sort and selection sort. Also, you have to analyze the best, worst and average case space and time complexity of each version.
* The source codes, analysis results and screen shots of your programs in working have to be prepared in a PDF file.
'생활 > 데이터 스트럭쳐' 카테고리의 다른 글
Data Structure 3번째 HW(번역) (0) | 2010.03.27 |
---|---|
Data Structure 3번째 HW (0) | 2010.03.27 |
Data Structure 2번째 HW(내맘대로 분석 #2) (0) | 2010.03.20 |
Data Structure 2번째 HW(내맘대로 분석) (0) | 2010.03.18 |
Data Structure 2번째 HW(번역) (0) | 2010.03.18 |
RECENT COMMENT