CSE 142 Homework 5 - Sorting, Searching and Arrays

May 16, 2003

 

Purpose: Practice using sorting and searching algorithms, and arrays.  

 

Problem: Working in pairs and starting from your jukebox code, or the sample solution for homework 4 (download here), implement a class called Homework5 with a main method that performs the following tasks: 

  1. Sorting:
  2. Searching:
  3. Arrays:

Hints:

Turn-in and due date: Turn in your code in a single file called Homework5.java using the turn-in web page. The due date is Wednesday May 21 at 9 pm.  

 

Time: Finishing this assignment requires as little as a page of code, if you're really careful. However, the sorting and searching code is somewhat intricate, which can put a dent into your time schedule if you have to debug very much. If you're well prepared and carefully decide what you have to do before you start coding, then you should be able to finish this assignment in an afternoon. Attempt to work systematically and efficiently, to better manage your time! 

 

Want more? Here are some suggestions for more fun with sorting and searching. (not worth any points or credit though).