









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The intriguing relationship between sudoku puzzles and the task scheduling problem. Discover how concepts from sudoku can be applied to task scheduling and vice versa. Learn about sudoku puzzles, their solution methods, and variations. Additionally, understand the basics of task scheduling, its constraints, and the importance of efficient scheduling algorithms.
Typology: Slides
1 / 17
This page cannot be seen from the preview
Don't miss anything!










Mini-Sudoku Puzzle
2
4 1
6 3
5
1
3 6
4 6
3
Sudoku Puzzle: Easy Example
5
4 7
6 7 4
9 5
2
6 1
3
6 4
9
8
5
7
1 3
6
2 9
8
8 3
5 9 7
4 5
6
Sudoku
Puzzle
Solution
Method
5
4 7
6 7 4
9 5
2
6 1
3
6 4
9
8
5
7
1 3
6
2 9
8
8 3
5 9 7
4 5
6
8
Strategy 1: Identify a missing number from a row, column, or block; if you can exclude all but one cell for that number, then write it down
6
7
Strategy 2: When you can’t make progress by Strategy 1, write down all candidate numbers in the cells and try to eliminate a number of options via reasoning. For example if xy, xy, xyz are candidates in three cells of a block, then the cell marked xyz must hold z
6 1
7 9
3
2
2
1
4 9
4
7 28 28
144 131 23 23 1, 2, 3, 4 missing from this row
missing from this column
(^13791)
Constructing a (Mini-)Sudoku Puzzle
3
2
4
3
1
6
2 1
3
5
1
3 6
4 3 6
3
5
2 4
4 1
6 1
3 6
4 6
3
2
5
4 3
Interesting fact: 4
http://people.csse.uwa.edu.au/gordon/sudokumin.php (Web page devoted to minimum Sudoku)
1
4
Variations on Sudoku
Resource Allocation Problem
Scheduling Required
CE Courses
ECE 1
CS 130A
ECE 15A
ECE 15B
CS 170
Math 3A
Math 3B
Math 3C
Math 5A
CS 10
CS 20
CS 40 CS 60
Phys 1
Phys 2
Phys 3
Phys 4
Phys 3L
Phys 4L
Chem 1A
Chem 1B
Chem 1AL
Chem 1BL
ECE 2A
ECE 2B
ECE 2C
ECE 152A
ECE 154 ECE 152B
1
2
3
4
5
Units
Engr 101
Upper - division standing
Or CS 30^ ECE 139 Or PSTAT 120A
Or CS 30
12 units
20 units
Job-Shop Scheduling
0 2 4 6 8 10 12 14 Time
t a f f
Job Task Machine Time Staff Ja Ta1 M1 2 3 Ja Ta2 M3 6 2 Jb Tb1 M2 5 2 Jb Tb2 M1 3 3 Jb Tb3 M2 3 2 Jc Tc1 M3 4 2 Jd Td1 M1 5 4 Jd Td2 M2 2 1
0 2 4 6 8 10 12 14 Time
t a f f
0 2 4 6 8 10 12 14 Time
t a f f
Schedule Refinement
Job Task Machine Time Staff Ja Ta1 M1 2 3 Ja Ta2 M3 6 2 Jb Tb1 M2 5 2 Jb Tb2 M1 3 3 Jb Tb3 M2 3 2 Jc Tc1 M3 4 2 Jd Td1 M1 5 4 Jd Td2 M2 2 1
0 2 4 6 8 10 12 14 Time
t a f f
Switch?
1
2
3
4
5
(^76)
8
(^109)
11
x
x
x
y
Vertex v represents Task or Computation j
T Latency with p proc T Number of nodes (h T Depth of the graph
Output
1
2
3
1
p 1
j
12
13
Vertex v represents task or computation^ j^ j
T Latency with p proce T Number of nodes (h T (^) ∞ Depth of the graph (
1
p
Output
Multiprocessor Scheduling
1
2
3
4
5
(^76)
8
(^109)
11
x
x
x
y
Vertex v represents Task or Computation j
T Latency with p proc T Number of nodes (h T Depth of the graph
Output
1
2
3
1
p 1
j
12
13
Vertex v represents task or computation^ j^ j
T Latency with p proce T Number of nodes (h T (^) ∞ Depth of the graph (
1
p
Output
Assignment to Processors