Course week 2 exercises¶
These submissions are due in course week 2 and they will be discussed on week 3 exercise sessions.
Pseudocode¶
Decrease and conquer¶
There are two young boys on one side of the river and N adults on the other side. The boys have a small boat that they both fit into at the same time. However, the boat can only fit one adult and no boys at a time. How can all adults cross the river? Describe your solution in enough detail or write pseudocode. How is the decrease and conquer principle used in this problem?
A+ esittää tässä kohdassa tehtävän palautuslomakkeen.
Insertion sort¶
[JSAV Placeholder: sorting_insertion_sort]
Binary search¶
[JSAV Placeholder: binary_search]