Dear Richard,
Thanks for your informative website about scheduling algorithms. I also started with an algorithm very similiar to your first attempt, but written in Java. It turned out to be a computational nightmare and I had great fun in decoding your C code to see if you had a different implementation (I like the way you used those binary operators, took me ages to figure out what they were up to). I then checked the newsgroup thread and realised the error of my ways and implemented a solution in Java in less than 20 lines, which came as a welcome surpise considering the complexity of the maths involved.
Thanks again for your help and best regards for the future.
P.S I didn't include the source code of my implementation because from the look of some of your examples you are already a competent Java programmer, however if you would like it then feel free to give me a shout.
August 30, 2002