资 源 简 介
枚举法(穷举法)
“笨人之法”: 把所有可能的情况一一测试,筛选出符合条件的各种结果进行输出。
【例一】百元买百鸡:用一百元钱买一百只鸡。已知公鸡5元/只,母鸡3元/只,小鸡1元/3只。
分析:
这是个不定方程――三元一次方程组问题(三个变量,两个方程)
x+y+z=100
5x+3y+z/3=100
设公鸡为x-enumeration method (exhaustive) "Benren Regulation" : all possible test of January 1, and selected eligible for the results output. Cases-- 100 yuan to buy a 100 chicken : 100 yuan to buy 100 chickens. Known rooster 5 yuan/only, the hen 3 yuan/only and chicken one yuan/3. Analysis : This is a volatile equation-- Group 3 linear equation (3 variable, equation 2) x+ y+ z = 100 5x+3 y+ z/3 = 100 x located rooster