Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Process Tasks Using Servers
Bookmark
Input
Example 1
Example 2
Simple
Custom
servers
=
[3, 3, 2]
,
tasks
=
[1, 2, 3, 2, 1, 2]
1
0
2
1
3
2
2
3
1
4
2
5
S0
3
S1
3
S2
2
each task goes to the lightest free server, ties to the lowest index
algo
master
.
io
Step:
Start: servers=[3,3,2], tasks=[1,2,3,2,1,2]
0 / 17
Input
Example 1
Example 2
Simple
Custom
servers
=
[3, 3, 2]
,
tasks
=
[1, 2, 3, 2, 1, 2]
0 / 17
1
0
2
1
3
2
2
3
1
4
2
5
S0
3
S1
3
S2
2
each task goes to the lightest free server, ties to the lowest index
algo
master
.
io
Step:
Start: servers=[3,3,2], tasks=[1,2,3,2,1,2]