Some interesting questions: ant crossing the river

Source: Internet
Author: User

Problem:

There was a one-meter-long wooden rod drifting on the sea, suddenly dropping 100 ants from the sky. Fortunately, they all fell on this wooden rod, (the positions they land on the sticks are random ). However, unfortunately,

All the ants walk at a random speed of 1 cm/s in one direction from the moment they land. When two ants touch each other, they immediately walk in the opposite direction. Once an ant arrives at a wooden stick, the ant will fall into the sea. Now, how long does it take to ensure that all the ants are swimming in the sea?

 

Answer:

The process is as follows:

1. First understand the question

2. Then, create a mathematical model based on the question to solve the problem.

 

Basically, the time spent on 1 is very small, and we often spend most of our time building a model of the problem, everything from the simplest y = a * x + B is complicated. But sometimes we can see blood with a single shot, but we need to cut it with a blunt knife. This question is not so simple to create a mathematical model. There are numerous and collision problems. We need to use complicated mathematics to create a model. However, if you work hard on 1, you can find a more direct method:

The two ants return after collision, which is equivalent to moving them forward through the other side. If ant financial's difference is ignored, we can see that the two situations are the same. For the latter, it is easy to find that the longest time is the time when an ant starts from the beginning to the end: 5 minutes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.