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
weqwewe [10]
2 years ago
7

Consider a modification of the rod-cutting problem in which, in addition to a price pi for each rod, each cut incurs a fixed cos

t of c. The revenue associated with a solution is now the sum of the prices of the pieces minus the costs of making the cuts. Give a dynamic-programming algorithm to solve this modified problem. g
Computers and Technology
1 answer:
andre [41]2 years ago
6 0

Answer:

Check the explanation

Explanation:

We muddy pseudo code for BOTTOM-UP-CUT-ROD by simply adding —c inside the parenthesis you have in line 6 (because that is were cut is made),

so that now it reads like this:

                                 q=max(q,p[i]+r[j-i]-c)

the after results will look like:

                           Modify pseudo code for BOTTOM-UP-CUT-ROD

You might be interested in
Select the correct answer.
Gwar [14]

Answer:

The correct answer would be B, Set of Rules.

Explanation:

In simple words, a Protocol can be defined as a set of Rules.

In computer networking terms, a protocol is a set of predefined rules and regulations, procedures and formats, which govern the communication between the different devices over a network. Protocols ensure the timely and secure communication between devices.

There are many different types of protocols. Some of the common protocols are FTP, HTTP, USENET, etc. Each of them has their own set of procedures and formats.

4 0
3 years ago
Read 2 more answers
What is 8 hours, 5 minutes, 22 seconds minus (-) 7 hours, 24 minutes, 37 seconds?
olga_2 [115]

Answer:

Enter time 1 HH:MM:SS8:5:22                                                                                                    

Enter time 2 HH:MM:SS7:24:37                                                                                                  

0:40:45

Explanation:

The program for above in Python is:

from datetime import datetime

s1 = input("Enter time 1 HH:MM:SS")

s2 = input("Enter time 2 HH:MM:SS")

Format1 = '%H:%M:%S'

tdiff = datetime.strptime(s1, Format1) - datetime.strptime(s2, Format1)

print(tdiff)

We are using the datetime class in datetime module for using strptime to find the difference between the two times.

3 0
3 years ago
What question should you ask yourself to determine if a story is newsworthy
Dvinal [7]

Would other people find this intresting and does it really matter?

6 0
2 years ago
Read 2 more answers
What are three ways to call attention to the text on a web page?
Lesechka [4]

Answer:

Place it in a box, <u>underline</u> it, make it bold, and/or i<em>talicize</em> it, you could also make it larger.

  • You could make it a bulleted list
  1. Or a numbered list

<u>The possibilities are endless!</u>

3 0
3 years ago
Read 2 more answers
The computer mouse are used for
IgorC [24]
A computer mouse is an input device for a computer that provides information onto the x and y coordinates of the icon being moved around by this mouse (referred to as a cursor) based off of the hand movements of the user moving the mouse.
Mouses also have three other button inputs. These are the left, right, and middle mouse buttons. The left button is typically used as the primary button, and is used to select, drag, open, and similar function. The right mouse button is usually intended for opening menus for additional options to be performed by the program being right-clicked on. The middle mouse button is actually a wheel that is used to move pages that extend beyond the boundaries of your screen up and down for easier viewing.
Hope that helped! =)
5 0
2 years ago
Read 2 more answers
Other questions:
  • Sofia is reading a difficult text for class and worries that she won't complete it by the given deadline. How can a text-
    13·2 answers
  • Media messages are communicated through which of the following:
    8·2 answers
  • You are required to design a 4-bit even up-counter using D flip flop by converting combinational circuit to sequential circuit.
    15·1 answer
  • What is a scholary or systemic investigation or injury about a subject?
    14·1 answer
  • Given two strings s and t of equal length, the Hamming distance between s and t, denoted dH(s,t), is the number of corresponding
    6·1 answer
  • Write a program that uses a while loop to calculate and print the multiples of 3 from 3 to 21. Your program should print each nu
    11·1 answer
  • Will economists be replaced by artificial intelligence?
    12·1 answer
  • This is an image of the ...........................Topology.
    5·1 answer
  • Edge is a video game featuring interactive extreme sports. The graphics used in the game are protected by
    8·1 answer
  • Do you guys answer questions about cyber security?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!