help with scheduling algorithims


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: help with scheduling algorithims

  1. #1
    Join Date
    Feb 2006
    Posts
    3

    help with scheduling algorithims

    I have been asked to implement scheduling algoritms in the java programming lanaguage, using class methods??

    Can anyone point me in the right direction?

  2. #2
    Join Date
    Feb 2006
    Posts
    3
    Any ideas on implementing sorting arrays in java?

  3. #3
    Join Date
    Jul 2005
    Location
    the Netherlands
    Posts
    128
    Quote Originally Posted by stevey2005
    Any ideas on implementing sorting arrays in java?
    Code:
            int[] array = {5,3,1,2,4};
            
            for(int i = 0; i < array.length; i++)
                System.out.print(array[i]+" ");
            
            System.out.println();
            
            java.util.Arrays.sort(array);
            
            for(int i = 0; i < array.length; i++)
                System.out.print(array[i]+" ");

  4. #4
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    What kind of "scheduling algorithms" are you talking about? Do you have any specifications? Any requirements for data types?

    The events or actions you are scheduling play a part in deciding how to approach your problem.

    Many of these problems are best solved using graphs (like work scheduling, critical path, shortest path) - look at Sedgewick's "Algorithms in Java" Part 5. Some use priority queues to determine the next action (bank teller or airplane runway kind of scheduling) so your real work is adding new items with the proper priority and, if necessary, re-prioritizing [such as the approaching airplane which is running out of fuel needing to be moved forward in the runway use queue ahead of the planes waiting to take off].

    You can find info about these by creative Google search - lots of Computer Science class handouts and assignments.

Similar Threads

  1. Scheduling
    By Andy Bachman in forum Database
    Replies: 1
    Last Post: 03-17-2003, 09:47 AM
  2. Job Scheduling Wizar
    By AAFL in forum Database
    Replies: 1
    Last Post: 05-02-2002, 03:13 AM
  3. Scheduling jobs
    By Eileen in forum Database
    Replies: 2
    Last Post: 01-25-2002, 02:36 PM
  4. Replies: 1
    Last Post: 02-01-2001, 01:03 PM
  5. Scheduling a DTS to run as a job
    By Ashley in forum Database
    Replies: 0
    Last Post: 11-20-2000, 12:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center