当前位置:网站首页>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
边栏推荐
- Hands on deep learning (43) -- machine translation and its data construction
- What is devsecops? Definitions, processes, frameworks and best practices for 2022
- Introduction to extensible system architecture
- Exercise 9-4 finding books (20 points)
- Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
- A little feeling
- View CSDN personal resource download details
- Exercise 7-3 store the numbers in the array in reverse order (20 points)
- 什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
- 用数据告诉你高考最难的省份是哪里!
猜你喜欢
leetcode1-3
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
Hands on deep learning (40) -- short and long term memory network (LSTM)
Vs201 solution to failure to open source file HPP (or link library file)
Basic principle of servlet and application of common API methods
Hands on deep learning (46) -- attention mechanism
Devop basic command
From programmers to large-scale distributed architects, where are you (2)
MySQL develops small mall management system
Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
随机推荐
Online troubleshooting
Today's sleep quality record 78 points
leetcode1229. Schedule the meeting
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
When I forget how to write SQL, I
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
Idea SSH channel configuration
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
Kotlin: collection use
Service developers publish services based on EDAs
Rhcsa learning practice
System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
Reprint: summation formula of proportional series and its derivation process
Exercise 9-4 finding books (20 points)
El Table Radio select and hide the select all box
Exercise 8-7 string sorting (20 points)
Latex arranges single column table pictures in double column format articles
Tables in the thesis of latex learning
转载:等比数列的求和公式,及其推导过程