Predator-prey relationship
An animal that feeds on another animal is called a predator. An animal that is eaten by another animal called the prey. In the case of rats eaten by snakes, the rats are the prey and the snakes are the predators. The fluctuations in the populations of predators and prey is illustrated by the following graph.
An increase in the population size of the prey means that more food is available for the predators. This leads to an increase in the number of the predators. This later causes a decrease in the population of the prey, which in turn results in a decrease in the predator population as less food is available. The decrease in the number of predators allows an increase in the number of the prey. Assuming there is no disturbance to the ecosystem such as addition of another prey or predator, the number of prey and predator will oscillate as shown in the above graph.