-
how to use the idea of mergesort, quciksort or heapsort
I have trouble creating a sort alogrithm to sort an input of data. The data inputs will be a strings made up of three letters.
Example of how the program should run
data input- cot, atb, abc, dcc, tak, bak
after the first sort- atb,abc,dcc,tak,bak,cot
after the 2nd sort-tak,bak,abc,dcc,cot,atb
after the 3rd sort-abc,atb,bak,cot,dcc,tak
It will work work like radixsort, but the alogrithm has to be in mergesort, quicksort, heapsort
------------------------------------------
public class Sort{
public void myAlogrthims(int n, String[] inp)
{
}
}
--------------------------------------------
Any help appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks