This document discusses various aspects of foraging behavior and habitat selection in organisms. It explains that foraging is how organisms obtain energy and nutrients from their environment. Habitat selection involves animals choosing habitats based on factors like genes, imprinting, and tradition. Two theories of habitat selection are discussed: the optimal foraging model, which predicts which habitat an animal should select to maximize benefits, and the ideal free distribution model, which predicts how individuals distribute themselves for highest fitness. Optimal foraging theory holds that organisms will optimize their energy budgets by maximizing energy intake and minimizing costs. Social foraging is also covered, where animals forage collectively and share information about food sources. The concept of territoriality and functions of establishing territories are then