Algorithm - 3
Solve this problem:
Write an algorithm for the situation below for 1 soldier. Then rewrite it for 2 soldiers.
Ferrying soldiers
A detachment of n soldiers must cross a wide and deep river with no bridge in sight. They notice two 12-year-old boys playing in a rowboat by the shore. The boat is so tiny, however, that it can only hold two boys or one soldier. How can the soldiers get across the river and leave the boys in joint possession of the boat? How many times need the boat pass from shore to shore?
5 years ago
5
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

NOT RATED
- Algorithm-3mins86.docx
other Questions(10)
- a.What is probability that a car produce last week is Brown?
- Assignment 1: LensCrafters Case Study
- MKTG 410 All Discussion Questions Week 1 - 7
- INVESTIGATING HATE CRIMES
- Online Business Homework (read carefully)
- EDU 692 week 1 Discussion 1
- CIS 333 Week 8 Assignment 2 - Identifying Potential Risk, Response and Recovery
- Week 8
- Module 6 – Chapter 17: Langan Essay Assignment
- TOTAL REWARDS