6dasalgo Prelims
6dasalgo Prelims
6dasalgo Prelims
Table
a b c d e
⤷ Go back to table
Frequency (20) 4 7 3 2 4
NO PRIORITY QUEUE
FLC (3 bits) 000 001 010 011 100
a b c d e
VLC 00 11 101 100 01
Frequency (20) 4 7 3 2 4
4(2) + 7(2) + 3(3) + 2(3) + 4(2) = 45
˃ A1(11) = a + b/ 4 + 7
˃ 4+7+3+2+4 = 20 * 3 bits = 60
˃ 45/60 = 0.75 or 75
100 – 75 = 25 A1 c d e
Savings = 25%
Frequency (20) 11 3 2 4
Arrange ˃ A2(14) = A1 + c / 11 + 3
⤷ Arrange in ascending order
d c a e b A2 d e
Deadlines 5 3 3 2 4 2
⤷ Total = 61
61/60 = 1.02 or 102 Profits 300 250 275 400 220 100
100 – 102 = –2
⤷ Savings = –2%
Step 1: Sort in Descending order (profit)