当前位置:网站首页>Summary of several job scheduling problems
Summary of several job scheduling problems
2022-07-04 10:25:00 【sqjddb】
Job scheduling problem summary
* Flow scheduling ( Dynamic programming )
set up T(S,t) Indicates the completion of the job set S The best time ,t Means to start doing S When working in , machine M2 also t Time (t It's a time period ) Come out free
The optimal value of flow shop scheduling is T(N,0) .0 When you start to do your first homework ,M2 Just idle .
This formula means :
Suppose you do your homework first i , It must be in M1 Flower on a1 Time for , As long as one homework is M1 The complete , You can start doing other homework , Do it here N Remove the job i The time spent on your homework is
Start removing i When I do my homework ,M2 Need to wait bi Time is free
The whole formula i Take 1~n, Take and use T(N,0) The smallest
Extended to the general situation , That is, when doing any homework :
Items here i It means the first homework to be done , But when you have to do other homework ,M2 The time period from waiting to idle has changed
t: Start doing S During homework ,M2 Still have to wait t The time period is free
When ai>t, Get started S-{i} Time to wait bi Period of time M2 To be free :
When ai<t, Get started S-{i} Time to wait t-ai+bi Period of time M2 To be free : Calculate the final time required :
( The illustration above : stay M1 or M2 The working time required on the machine / The moment after completion )
* Multi machine scheduling problem ( Greedy Algorithm )
* Batch job scheduling ( backtracking )
Batch job scheduling deals with the same problem as flow job scheduling , All are n Homework ,m Taiwan machine , Every job must be done on the machine first 1 Processing on the machine 2 Top processing , But batch job scheduling requires that all jobs be on the machine 2 The minimum sum of the last completion time .
Algorithm ideas : example :
The procedure is as follows : The following procedure is in Flow() Internally defined objects , Open up space , initialization , Destroy space :
In the above example :
The full arrangement here is not a dictionary order , For the reasons, please refer to The total permutation problem
边栏推荐
- Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
- How can Huawei online match improve the success rate of player matching
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
- Tables in the thesis of latex learning
- Work order management system OTRs
- If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
- From programmers to large-scale distributed architects, where are you (I)
- Native div has editing ability
- Map container
- Rhcsa day 9
猜你喜欢
Rhcsa - day 13
Histogram equalization
Advanced technology management - how to design and follow up the performance of students at different levels
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
IPv6 comprehensive experiment
Work order management system OTRs
The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
Rhsca day 11 operation
Development guidance document of CMDB
Static comprehensive experiment ---hcip1
随机推荐
Basic data types of MySQL
Reprint: summation formula of proportional series and its derivation process
MySQL case
Exercise 9-5 address book sorting (20 points)
Exercise 7-4 find out the elements that are not common to two arrays (20 points)
Normal vector point cloud rotation
Number of relationship models
Summary of reasons for web side automation test failure
【Day2】 convolutional-neural-networks
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
Architecture introduction
Dynamic memory management
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Talk about scalability
Es advanced series - 1 JVM memory allocation
Intelligent gateway helps improve industrial data acquisition and utilization
Servlet基本原理与常见API方法的应用
Application of safety monitoring in zhizhilu Denggan reservoir area
Use C to extract all text in PDF files (support.Net core)
MySQL develops small mall management system