| Assignment 1 |
| Deadline for submission: Friday, 10 Aug, 2001, Midnight. |
|
In this assignment, you are required to write a Java program to sort an array of integers using Quicksort and Mergesort algorithms and then search the array for a particular integer value using Binary Search algorithm. You are required to write a class for this which implements the interface "SortAndSearchInterface". You can download the interface file by clicking here. It contains the following code: |
/* |
|
Comments explain much of what you are supposed to
code. As said in the comments, the pivot value in
Your code for the sorting/searching class should not be graphical, i.e. it should not require a GUI to run. Do not use AWT or Swing components in that code. After you implement the above interface as a
class, you will have to write another class which
will contain The final submission should contain only the file that contains the class which implements the sort and search. Mail that single java file as an attachment to kedar@cse.iitk.ac.in. Be sure to put some informative comment (with your Roll No and Name) in the file to identify whose file it is. Please DO NOT mail the file to any other email address. Note: You will find the Java API documentation useful when you start to write your code. See the Resources section for that and for other references. |