当前位置:网站首页>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
边栏推荐
- Deep learning 500 questions
- Rhcsa learning practice
- How to teach yourself to learn programming
- 2020-03-28
- A little feeling
- AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
- RHCE day 3
- RHCE - day one
- Hands on deep learning (37) -- cyclic neural network
- 什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
猜你喜欢

leetcode1-3
![[FAQ] summary of common causes and solutions of Huawei account service error 907135701](/img/73/c4ee842475f05e2e67297fcac68779.png)
[FAQ] summary of common causes and solutions of Huawei account service error 907135701

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1

Hands on deep learning (41) -- Deep recurrent neural network (deep RNN)

When I forget how to write SQL, I

Vs201 solution to failure to open source file HPP (or link library file)

【Day1】 deep-learning-basics

对于程序员来说,伤害力度最大的话。。。

Rhsca day 11 operation

Advanced technology management - how to design and follow up the performance of students at different levels
随机推荐
Application of safety monitoring in zhizhilu Denggan reservoir area
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Work order management system OTRs
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
Dynamic memory management
Hlk-w801wifi connection
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
OSPF summary
Basic data types of MySQL
Exercise 9-3 plane vector addition (15 points)
Legion is a network penetration tool
Rhcsa operation
Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
【OpenCV 例程200篇】218. 多行倾斜文字水印
Exercise 7-3 store the numbers in the array in reverse order (20 points)
Exercise 9-1 time conversion (15 points)
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
Rhcsa learning practice
MPLS: multi protocol label switching
