Question

Cutting a stick A stick n inches long needs to be cut into n 1-inch pieces....

Cutting a stick A stick n inches long needs to be cut into n 1-inch pieces. Outline an algorithm that performs this task with the minimum number of cuts if several pieces of the stick can be cut at the same time. Also give a formula for the minimum number of cuts

0 0
Add a comment Improve this question Transcribed image text
Answer #1

the same time. the approach soly since we can cut several pieces at to solve this problem: cut the stick into 2 pleces : OneAlgorithm:- c= 0 8=n / intial value for r . S=O sls minimum no. ofcuts c=int (10qan) s=sto &=n-2c if (r=0) printNo. of cuts

Add a comment
Know the answer?
Add Answer to:
Cutting a stick A stick n inches long needs to be cut into n 1-inch pieces....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT