one example where heuristics are useful is a kind of packing problem. the problem consists of packing a number of items. there are rules that need to be respected. for example, each item has a value and a weight. the problem now is to get the most valuable items, with the least weight possible. another instance is fitting a number of differently-sized items into a confined space, like the trunk of a car.