1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
boyakko [2]
3 years ago
9

Consider the single machine scheduling problem where we are given a set T of tasks specified by their start times and finish tim

es, as in the task scheduling problem, except now we have only one machine and we wish to maximize the number of tasks that this single machine performs. Design a greedy algorithm for this single machine scheduling problem and show that it is correct. What is the running time of this algorithm?
Computers and Technology
1 answer:
Makovka662 [10]3 years ago
7 0

Answer and Explanation:

single machine scheduling problem where we are given a set T of tasks specified by their start times and finish times

Here we wish to maximise the number of tasks that this machine performs.

We would increase the performance of the machine if we execute more number of task in per unit of time.

To do that if we can follow the SJF(Shortest Job First) Schduling Algorithm, in this algorithm we calculate the burst time of each task.

which is (FT-ST) where FT= Finishing time and ST=Starting Time.

Now if we pick the shortest burst time task first to assign to CPU then we can complete more number of task in per unt of time.

For exa:

Let the Tasks (T1,T2,T3,T4)

Starting Time:(0,3,4,5)

Finishing TIme: (3,4,5,7)

Burst Time:(3,1,1,2)

Therefor if we arrange them in Burst time incresing order (1,1,2,3) = (T2,T3,T4,T1)

We can finish the more number of task in per unit of time.

Running Time:

TO calculate the burst time of n tasks= O(n)

TO arrange the n task in ascending order = O(nlogn)

Therefor Time complexity: (O(n)+O(nlogn)) = O(nlogn)

You might be interested in
When you ____ software, you are adapting it from one type of computer or operating system to run on a different computer or oper
ra1l [238]

Answer: Port

Explanation :

When we port a software from one computer to another computer or from one operating system to another operating system, it tries to adapt to the new environment of the machine by checking the required the configurations of the machine and then checking the available files in the software to run the machine.

The porting of a software also checks whether the software is compatible with the machine or not and if not then why.

7 0
3 years ago
Choose the response that best completes the following statement.
slava [35]

Answer:

consider the outcome

Explanation:

7 0
2 years ago
If someone has the IP address 127.0.0.1 and tries to connect to the address 127.255.252.255, which are they attempting to connec
sertanlavr [38]
B is the answer i think
6 0
3 years ago
Java what are synchronized functions.
adelina 88 [10]

<h2>answer:</h2>

Synchronized method is used to lock an object for any shared resource. When a thread invokes a synchronized method, it automatically acquires the lock for that object and releases it when the thread completes its task.','.

4 0
2 years ago
Pasahot ako plzsss kailangan ko na ngayon ​
goldfiish [28.3K]

Answer:

what language is this

Explanation:

3 0
3 years ago
Other questions:
  • In what areas is leslie's underspending hurting her
    10·1 answer
  • Recall the problem of finding the number of inversions. As in the text, we are given a sequence of n numbers a1, . . . , an, whi
    8·1 answer
  • Today's Apple Mac computers run with the same internal hardware as the Windows-based PC.
    10·2 answers
  • Ok.,so i have a sopitify account and by accident i pressed the downlaod on button and it says start you free trial i pressed tha
    11·2 answers
  • An organization is developing an authentication service for use at the entry and exit ports of country borders. The service will
    10·1 answer
  • Que significa el término Informática?
    6·1 answer
  • I store data that the CPU needs. What am I?
    8·2 answers
  • In Python, parentheses are used in calculations where the order of operations affects the outcome. (5 points)
    9·1 answer
  • Teenagers and their parents will never understand each other-the generation gap is too big. Its for my grade 11 English speech​
    10·2 answers
  • Is each of the following method identifiers (a) legal and conventional, (b) legal but unconventional, or (C) illegal?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!