论文部分内容阅读
算法作为高中新课程增加的内容之一,它是计算机科学的重要基础,也是高考的必考内容之一。由于算法应用的广泛性,它通常与函数、不等式、三角函数、数列、概率统计等知识交汇,形成许多新颖、高质量的考题。下面笔者举例谈谈算法中的交汇题型及其解法,供同学们参考。一、算法与(分段)函数交汇例1(2013年陕西卷)根据下列的算法语句,当输入
As one of the new contents of high school new curriculum, algorithm is an important foundation of computer science and one of the necessary examinations of college entrance examination. Due to the extensive application of the algorithm, it usually converges with knowledge of functions, inequalities, trigonometric functions, sequence numbers and probability statistics to form many new and high-quality test questions. Here’s an example to talk about algorithm in the intersection of question type and solution, for the students reference. First, the algorithm and (segmentation) function intersection Example 1 (Shaanxi volume in 2013) According to the following algorithm statement, when the input