A Candy Lover Learns to Optimize
DOI:
https://doi.org/10.37119/jpss2023.v21i1.678Abstract
A container has two types of candies: Type A and Type B. Concerned about her child's well-being, a wise mom pronounces, “Each day, you can choose two candies from the container random. If they are of different types, you can eat them both. If they are of the same type, eat only one and return the other to the container.” We analyze the expected number of days needed to eat all candies in the container and the proportion of days the child eats two candies. Several other variations are either worked out or left for readers to solve.Downloads
Published
2023-03-09
Issue
Section
Teaching Section
License
Copyright (c) 2023 Anh Phuong Do, Mamunur Rashid, Jyotirmoy Sarkar
This work is licensed under a Creative Commons Attribution 4.0 International License.