论文部分内容阅读
2002年北京高考与2001年上海高考数学试卷中都出现了用数学知识去解决计算机运算程序中的数学问题,这类问题的求解关键是如何将计算机的运算程序转化为数学的表达式,不少同学感到难以应付,现举例来说明具体的求解方法.例1 (2002年北京高考题)在研究并行计算的基本算法时,有以下简单的模型问题:用计算机求 n 个不同的数 v_1,v_2,v_3,…,v_n 的和 sum from i=1 to n=v_1+v_2+v_3+…+v_n.计算开始前,n 个数贮存在 n 台由网络连接的计算机中,每台机器存一个数,计算开始后,在一个单位
The mathematics knowledge was used to solve mathematical problems in computer computing programs in the 2002 Beijing College Entrance Examination and the 2001 Shanghai College Entrance Examination Mathematics Test. The key to solving such problems is how to convert computer computing programs into mathematical expressions. Students feel difficult to cope with, for example to illustrate the specific solution method. Example 1 (2002 Beijing college entrance examination question) When studying the basic algorithm of parallel computing, there are the following simple model problems: using computer to find n different numbers v_1, v_2 ,v_3,...,v_n and sum from i=1 to n=v_1+v_2+v_3+...+v_n. Before the calculation starts, n numbers are stored in n computers connected by a network, and each machine stores a number. After the calculation starts, in a unit