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
svet-max [94.6K]
4 years ago
8

Give a polynomial-time algorithm that takes a sequence of supply values s1, s2, . . . , sn and returns a schedule of minimum cos

t. for example, suppose r = 1, c = 10, and the sequence of values is
Mathematics
1 answer:
Temka [501]4 years ago
8 0
Assuming the sequence is unsorted.

Try a rudimentary proposition, do a bubble sort, that gives O(n^2) for worst and average case.  It is a polynomial algorithm.

We can also do a quick sort, with worst case O(n^2) and average case O(nlogn), which is already better.

Do we need to sort everything?  Not really.

What about a single pass, and store the minimum found, exchange as required, such as:

small=A(0)
for i:1, n {
  if A(i)<small small: A(i)
}
return small

This is a linear algorithm, best case n, worst case 2n so O(n)
You might be interested in
A healthcare industry is reviewing the number of liabilities each location has. Location A has a z-score of −1.12 and Location N
elixir [45]

Answer:

0.8686    or  86.86 %

0.2148     or 21.48  %

Step-by-step explanation:

In z table the value of z > - 1,12  is   0.1314 (value from the z point to the left of the curve ) then 1 - 01314 will be value from z point to the right

Again from z table we get for z = - 0.79 the value  0.2148 s the vale from the point up to the left tail

6 0
4 years ago
the height of an equivalent triangle is 15cm and it's perimeter is 36cm find the area of the triangle​
OlgaM077 [116]

Answer:

The area is 72 cm².

Step-by-step explanation:

Since it is equivalent triangle

h = b

so,

b + b + b (since all sides are equal)= 36 cm

3b = 36 cm

or, b = 36/3

so, b = 12 cm

so

area of triangle = (1/2)×b×h

= (1/2)×12cm×12cm

= 6cm × 12cm

= 72 cm²

4 0
3 years ago
Anwser: <br><br> (1-4-6+56)×6-8-3
baherus [9]

Answer:

PEMDAS, do multiplication first then, adddition, then subtraction

Step-by-step explanation:

7 0
4 years ago
Brainlest for answered
Helen [10]

Answer:

Hello! answer: 4/5

Step-by-step explanation:

20 ÷ 5 = 4 25 ÷ 5 = 5 that is 4/5 therefore 4/5 is the answer because we cannot reduce any further HOPE THAT HELPS!

4 0
3 years ago
Read 2 more answers
Which is bigger 1.63m or 1.6m​
andrew-mc [135]

Answer:

1.63

HOPE THIS WILL HELP..............!

3 0
3 years ago
Other questions:
  • Which mathematical statements are true?
    15·1 answer
  • A paroxysm of laughter escaped a few. If the ratio of the laughers to the stolid was 2 to 17,and 7600 were in the throng, how ma
    6·1 answer
  • Question 6 of 10
    11·2 answers
  • Tell whether each equation has one, zero, or infinitely many solutions.<br>5(x - 3) +6= 5x - 9​
    14·1 answer
  • Dan is 14 years older than Marge. Eight years ago, Dan was three times as old as Marge. How old is Dan?
    14·2 answers
  • Wiich line plot displays a data set with an outlier
    7·1 answer
  • (brainliest) please help!!
    5·1 answer
  • What is the missing denominator? 6 8 40 48
    10·1 answer
  • Triangle with sides of 7 and 9. What is the longest length the third side can be?​
    8·1 answer
  • Solve.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!