subject

I should create an algorithm and implement it using scratch. PLEASE PLEASE HELP. A carpenter is cutting a long plank of wood of length N cm. Each cutting has fixed width
of 2 cm lengths. Given that each length has a price, Now, we are required to help this
carpenter to find the optimal cuts in order to increase his profit. Consider following
example showing different cut’s lengths and their equivalent prices.
Input: Plank length = 4
Length [ ] = [1, 2, 3, 4, 5, 6, 7, 8]
Price [ ] = [2, 6, 8, 10, 14, 17, 19, 20]
Output: Best cut is two pieces of length 2 each to gain revenue of 6 + 6 = 12

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
question
Computers and Technology, 24.06.2019 21:00
How does a vaccine prevent sickness and individual?
Answers: 2
You know the right answer?
I should create an algorithm and implement it using scratch. PLEASE PLEASE HELP. A carpenter is cut...
Questions
question
History, 23.10.2020 22:30
question
Spanish, 23.10.2020 22:30
question
Mathematics, 23.10.2020 22:30