Thread: Scheduling Algo

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Yeah, that was one of the greedy algorithms I proposed. Unfortunately what screws up any greedy algos I can think of is the problem that each task has a list of computers that it may work on which isn't necessarily ALL the possible computers. If you sort by end times which is required for the greedy algorithm, you get wrong results with something like:

    Task 1: Start 1:00 End 2:00 possible comps: A B
    Task 2: Start 1:00 End 3:00 possible comps: A

    And if you try and sort by total possible computers, then you get screwed up with something like:

    Task 1: 1:00 End 3:00 possible comps: A
    Task 2: 1:00 End 2:00 possible comps: A B
    Task 3: 1:00 End 2:00 possible comps: A B
    Task 4: 2:00 End 3:00 possible comps: A B
    Task 5: 2:00 End 3:00 possible comps: A B

    So I don't think any greedy algorithm will work unfortunately... and unless you know at compile time how many comps there are, I'm stumped as to how to do this iteratively.
    Last edited by PJYelton; 03-07-2003 at 09:41 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. flow control algo
    By Mr.Bit in forum C Programming
    Replies: 4
    Last Post: 04-28-2008, 10:32 AM
  2. scheduling in linux
    By anjana in forum Linux Programming
    Replies: 2
    Last Post: 05-24-2007, 03:48 PM
  3. Maze generation algo
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 03-01-2006, 05:03 AM
  4. Flight scheduling algorithm?
    By ChadJohnson in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 01-26-2006, 02:23 AM
  5. Round Robin Scheduling using c.
    By eclipt in forum C Programming
    Replies: 8
    Last Post: 12-28-2005, 04:58 PM