Re: trees



sngtnair84@xxxxxxxxx wrote:

I want to implement the following but Im not sure what data
structure to use.

I have a list of jobs that need to be allocated to schedulers.
The number of schedulers in the system depend upon the number of
jobs. Each scheduler can handle between n & m jobs. Each
scheduler handles at the max m jobs. The resulting tree structure
should be "balanced" - in the sense there shouldn't be any
scheduler with too few jobs and none with too many. I should be
able to freely move around the jobs to different schedulers
without breaking the "balance" in the system.

Make yourself a struct (or equivalent, depending on language)
describing a scheduler. Do the same for a job. Then build
software to do what you want. You will be free to revise the
structs as needed, and eventually you will probably come up with a
workable system. Obviously if you are free to move jobs to
schedulers the results can easily become unbalanced.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.


.



Relevant Pages

  • Re: trees
    ... I want to implement the following but Im not sure what data structure ... I have a list of jobs that need to be allocated to schedulers. ... without breaking the "balance" in the system. ...
    (comp.programming)
  • Re: trees
    ... I want to implement the following but Im not sure what data structure ... I have a list of jobs that need to be allocated to schedulers. ... There are many methods for scheduling CPU-bound threads. ...
    (comp.programming)
  • trees
    ... I want to implement the following but Im not sure what data structure ... I have a list of jobs that need to be allocated to schedulers. ... without breaking the "balance" in the system. ...
    (comp.programming)
  • Re: NanoWriMo
    ... applying for jobs I know I haven't a chance of getting, ... hire an accountant to file the accounts for my non-profit making ... negative balances. ... The weights come in binary: ...
    (rec.arts.sf.composition)
  • Re: Ping Larkin
    ... jobs to China, but you can blame global multinationals for that, who ... Finding the right balance is not a job I would want. ... Businesses are lucky to make 10%. ... Both the oil companies and the health insurance companies run ballpark ...
    (sci.electronics.design)