I have gotten several questions about 2B in HW2. As a lead, I want to say that there is no simple and perfect solution. Sorry. This is a question about "algorithmics meeting the reality", and I want you to exercise your algorithmic thinking and report a practical solution that you can justify in some way or another.