I'll just give you some hints.
For SJF and SRT you don't really definitions - just think logically about the name.
For SJF, pick the shortest arrived unfinished job. Use the total time of the job, i.e. 3,5,2,5,5 - pay no attention to how much has already been scheduled for that job.
For SRT, pick the arrived unfinished job with the least remaining time. The remaining time is simply defined as the total time minus how much has already been scheduled. So, at time 2, you'd have scheduled AA
, thus the remaining time for A
would be 3-2 = 1
.
For SJF and SRT, conflicts (when there are two jobs with the same times) can probably be resolved by picking the job that arrived first. For SRT, conflicts may also be resolved by picking the longest job. You'll have to confirm this.
Note that there are two variations for these algorithms - preemptive and non-preemptive. In short, preemptive means that, at every time step you pick the job to execute next. For non-preemtive, on the other hand, once you've picked a job, you schedule that job until it's finished, no matter whether or not there's a newly arrived job with a shorter time. See this for a more detailed explanation.
For RR, just pick the one you've picked the longest ago.