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]
4 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]4 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
Who invented the ENIAC? More than one answer may apply.
andriy [413]

Answer:John Mauchly and Presper Eckert

Explanation:

3 0
3 years ago
What are three ways a person may use a computer without realizing it?
Elodia [21]

Answer:

D

It's technically a computer and some people may not realize it.

5 0
3 years ago
Who here would like to play among us with me? <br> Time: Friday, November 13
Ira Lisetskai [31]

Answer:

BRO I WANNA!

My among us name is "A cop"

What time?

Explanation:

8 0
3 years ago
Which two statements are true about algorithms?
DENIUS [597]

Answer:

I. Algorithms can be written using pseudocode.

II. Algorithms can be visualized using flowcharts.

Explanation:

An algorithm can be defined as a standard formula or procedures which comprises of set of finite steps or instructions for solving a problem on a computer. The time complexity is a measure of the amount of time required by an algorithm to run till its completion of the task with respect to the length of the input.

The two statements which are true about algorithms are;

I. Algorithms can be written using pseudocode. A pseudocode refers to the description of the steps contained in an algorithm using a plain or natural language.

II. Algorithms can be visualized using flowcharts. A flowchart can be defined as a graphical representation of an algorithm for a process or workflow.

Basically, a flowchart make use of standard symbols such as arrows, rectangle, diamond and an oval to graphically represent the steps associated with a system, process or workflow sequentially i.e from the beginning (start) to the end (finish).

3 0
3 years ago
Read 2 more answers
1. True or false: The more pixels per inch in an image, the higher the resolution is. (1 point)
Annette [7]
1. true
2. pixel
3. raster images are built with pixels
4. false
5. image size
6. rollover
7. sharp with clear details
8. 78px
9. 24in
10. scalability
3 0
3 years ago
Other questions:
  • Whats the Sioux City school wifi?
    15·2 answers
  • What is the order of arrangement of files and folders on a computer?
    15·1 answer
  • What are you guys doing?
    13·2 answers
  • Encyclopedia.com is considered to be
    15·1 answer
  • This type of software works with end users, application software, and computer hardware to handle the majority of technical deta
    12·1 answer
  • What should you do to help prepare yourself for the delivery of your presentation? you can chose more then one
    8·1 answer
  • Since the web.xml file describes how the web application should be configured when it is deployed on a server, the file is known
    7·1 answer
  • A personal computer (pc) or ____ is a small computer system designed to be used by one person at a time.
    12·1 answer
  • Give one example of where augmented reality is used​
    11·2 answers
  • Types of Hazards Mitigation Measures
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!