当前位置:网站首页>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
边栏推荐
- Idea SSH channel configuration
- Intelligent gateway helps improve industrial data acquisition and utilization
- Container cloud notes
- 183 sets of free resume templates to help everyone find a good job
- Hands on deep learning (37) -- cyclic neural network
- Doris / Clickhouse / Hudi, a phased summary in June
- Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
- Qtreeview+ custom model implementation example
- 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
- 【Day2】 convolutional-neural-networks
猜你喜欢
Introduction to extensible system architecture
Rhcsa day 9
How can Huawei online match improve the success rate of player matching
Three schemes of ZK double machine room
Online troubleshooting
Latex learning insertion number - list of filled dots, bars, numbers
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
Machine learning -- neural network (IV): BP neural network
Reprint: summation formula of proportional series and its derivation process
Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
随机推荐
RHCE - day one
VLAN part of switching technology
2. Data type
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
入职中国平安三周年的一些总结
六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
Ruby时间格式转换strftime毫秒匹配格式
El Table Radio select and hide the select all box
Use C to extract all text in PDF files (support.Net core)
Hlk-w801wifi connection
转载:等比数列的求和公式,及其推导过程
对于程序员来说,伤害力度最大的话。。。
Exercise 7-2 finding the maximum value and its subscript (20 points)
Ruby time format conversion strftime MS matching format
Intelligent gateway helps improve industrial data acquisition and utilization
AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
Lavel document reading notes -how to use @auth and @guest directives in lavel
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
C language structure to realize simple address book