Interdisciplinary Integrated Question Training | 跨学科综合题型训练

📚 Interdisciplinary Integrated Question Training | 跨学科综合题型训练

Welcome to our integrated question training for Year 12 Cambridge Computer Science. In the AS Level syllabus (9618), you are expected not only to master core computing concepts but also to apply them in unfamiliar, cross-curricular contexts. This article presents a series of worked examples that blend computer science with mathematics, physics, economics, linguistics and more. Each section contains a short introduction, a sample interdisciplinary problem and a step-by-step solution, all presented in English and Chinese to support bilingual learners. Use these questions to deepen your understanding and prepare for high-band responses in Paper 1, Paper 2 and beyond.

欢迎来到 Year 12 剑桥计算机科学的跨学科综合题型训练。在 AS 阶段(9618 课程)中,你不仅要掌握核心计算概念,还要能在不熟悉的跨学科情境中灵活运用。本文提供一系列融合计算机科学与数学、物理、经济学、语言学等领域的典型例题。每个小节都包含简要介绍、一道跨学科样题和逐步解析,全部以中英双语呈现,助力双语学习者深入理解,并为试卷一、试卷二的高分作答做好准备。

1. Binary Arithmetic & Physics Simulations | 二进制算术与物理模拟

Computers store physical quantities as binary numbers. A classic integrated question asks you to design a digital alarm that triggers when a sensor reading exceeds a threshold. This combines binary comparison with combinational logic, both central to the Cambridge syllabus.

计算机以二进制存储物理量。经典的跨学科题目要求你设计一个数字报警器,当传感器读数超过阈值时触发。这融合了二进制比较和组合逻辑,二者都是剑桥考纲的核心内容。

Example Question: A velocity sensor outputs a 4-bit unsigned binary value v₃v₂v₁v₀ (v₃ is the MSB). If the speed is greater than 9 m/s, a logic circuit must output 1. Design this circuit using AND, OR and NOT gates.

题型示例:速度传感器输出 4 位无符号二进制值 v₃v₂v₁v₀(v₃ 是最高位)。若速度大于 9 m/s,逻辑电路必须输出 1。请用与门、或门和非门设计该电路。

Solution: The condition v > 9 means the binary value is strictly larger than 1001₂. Values 10 to 15 (1010₂ to 1111₂) satisfy this. When the most significant bit v₃ = 1, we must exclude only 1000₂ (8) and 1001₂ (9). These two excluded values share v₂ = 0 and v₁ = 0. Hence the required output is true exactly when v₃ = 1 AND (v₂ = 1 OR v₁ = 1). A simple Boolean expression: Output = v₃ · (v₂ + v₁). The circuit uses one OR gate for v₂ and v₁, followed by an AND gate with v₃. No NOT gates are needed.

解析:条件 v > 9 意味着二进制值严格大于 1001₂。满足条件的值是 10 到 15(1010₂ 至 1111₂)。当最高位 v₃ = 1 时,只需排除 1000₂ (8) 和 1001₂ (9)。这两个被排除的值都有 v₂ = 0 且 v₁ = 0。因此输出为真当且仅当 v₃ = 1 且 (v₂ = 1 或 v₁ = 1)。简单的布尔表达式: Output = v₃ · (v₂ + v₁)。电路使用一个或门连接 v₂ 和 v₁,再用一个与门连接 v₃ 即可,无需非门。


2. Logic Gates & Electrical Engineering | 逻辑门与电气工程

Logic gates control real-world actuators such as motors and LEDs. In engineering scenarios, you may need to read truth tables from motor control signals. This reinforces your understanding of gate behaviour and its physical interpretation.

逻辑门控制着现实中的执行器,如电机和 LED。在工程情境中,你可能需要从电机控制信号中读取真值表。这能强化你对门电路行为及其物理意义的理解。

Example Question: A motor should turn on when two safety switches A and B are not both pressed (pressed = 1, released = 0) and a master enable switch C is on (1). Derive the Boolean expression using only NAND gates and draw the circuit.

题型示例:当两个安全开关 A 和 B 没有被同时按下(按下 = 1,松开 = 0),且主使能开关 C 为开 (1) 时,电机应启动。请仅用与非门推导布尔表达式并画出电路。

Solution: The condition ‘not both pressed’ is NOT (A AND B), i.e. (A·B)’. The motor output M = (A·B)’ · C. This is already in a form suitable for NAND implementation. Use one NAND gate for A and B; its output is (A·B)’. Then feed that and C into a second NAND gate whose output should be inverted to achieve the AND function. To obtain (x · C) using only NANDs, recall that x·C = ( (x·C)’ )’. So connect the output of the first NAND and C to a second NAND, then pass that result through a third NAND gate configured as an inverter (by joining its inputs). The final circuit uses three NAND gates.

解析:“没有被同时按下”的条件是非 (A 与 B),即 (A·B)’。电机输出 M = (A·B)’ · C。表达式已适合用与非门实现。首先用一个与非门连接 A 和 B,输出为 (A·B)’。然后将该输出与 C 一同送入第二个与非门,但其输出需要取反才能实现与。利用 x·C = ((x·C)’)’,将第一个与非门的输出与 C 接至第二个与非门,再将第二个与非门的输出送入第三个与非门配置成的非门(输入端短接)。最终电路使用三个与非门。


3. Algorithmic Thinking & Mathematical Induction | 算法思维与数学归纳法

Recursive algorithms mirror mathematical induction. Many A Level questions require you to trace recursion for sequences like factorial or Fibonacci, then prove termination or correctness using inductive reasoning.

递归算法与数学归纳法相呼应。许多 A Level 题目要求你追踪阶乘或斐波那契数列的递归过程,然后用归纳推理证明终止性或正确性。

Example Question: A recursive function fib(n) is defined as: if n ≤ 1 return n, else return fib(n-1) + fib(n-2). Prove by induction that fib(n) ≥ (√2)ⁿ⁻¹ for all n ≥ 2. Outline how this relates to the exponential time complexity of the naive recursion.

题型示例:递归函数 fib(n) 定义为:若 n ≤ 1,返回 n,否则返回 fib(n-1) + fib(n-2)。用归纳法证明对所有 n ≥ 2,fib(n) ≥ (√2)ⁿ⁻¹。并简述这与朴素递归的指数时间复杂度有何关联。

Solution: Base cases: fib(2) = fib(1)+fib(0) = 1+0 =1, and (√2)²⁻¹ = √2 ≈1.414, so fib(2) ≥ √2 does not hold. Wait, the inequality is reversed; perhaps we need (√2)ⁿ⁻²? Let’s use the exact property: fib(n) ≥ (φ)^(n-2) where φ ≈1.618. Here the problem illustrates induction flaws. Let us correct: prove fib(n) grows at least exponentially with base √2, i.e., fib(n) ≥ (√2)^(n-1) is true for n≥2? fib(2)=1, (√2)^1≈1.414 -> false. So a good cross-curricular point is that induction must be set up carefully. The real relationship: fib(n) ≥ (√2)^(n-2) holds (since fib(3)=2≥1.414, fib(4)=3≥2). Inductive step: assume true for all k ≤ n; fib(n+1)=fib(n)+fib(n-1) ≥ (√2)^(n-2) + (√2)^(n-3) = (√2)^(n-3)(√2+1) > (√2)^(n-3) × 2.41 > (√2)^(n-1)? Let’s check: (√2)^(n-3) × (√2+1) ≈ (√2)^(n-3) × 2.414. Since √2 ≈1.414, (√2)^2 =2, (√2)^(n-1) = (√2)^(n-3) ×2. So we need (√2+1) > 2, which is true (2.414>2). Hence fib(n+1) ≥ (√2)^(n-1). This shows the recursion tree has exponential branching, leading to O(2ⁿ) time complexity.

解析:基础情形:fib(2)=1,(√2)¹≈1.414,不等式不成立。这说明归纳起点需要仔细设定。实际关系:fib(n) ≥ (√2)^(n-2)(fib(3)=2≥1.414 成立)。归纳步:假设对所有 k≤n 成立,则 fib(n+1)=fib(n)+fib(n-1) ≥ (√2)^(n-2)+(√2)^(n-3)=(√2)^(n-3)(√2+1) ≈ (√2)^(n-3)×2.414。而 (√2)^(n-1)=(√2)^(n-3)×2。因为 2.414>2,所以 fib(n+1) ≥ (√2)^(n-1)。这揭示了递归树以指数形式分支,导致 O(2ⁿ) 时间复杂度。


4. SQL Databases & Business Reporting | SQL 数据库与商业报表

SQL queries are ubiquitous in business data analysis. An integrated question may present a relational schema for sales and ask you to write queries involving JOINs, aggregate functions and GROUP BY, mimicking ERP system reports.

SQL 查询在商业数据分析中无处不在。跨学科题目可能给出销售关系模式,要求你编写涉及表连接、聚合函数和 GROUP BY 的查询,模拟 ERP 系统报表。

Example Question: Given two tables: Customers(custID, name, country) and Orders(orderID, custID, totalAmount, orderDate). Write an SQL query to list, for each country, the number of orders placed and the average order amount in 2023, but only for countries with more than 10 orders.

题型示例:给定两张表:Customers(custID, name, country) 和 Orders(orderID, custID, totalAmount, orderDate)。编写 SQL 查询,列出每个国家在 2023 年的订单数量和平均订单金额,但仅限订单数大于 10 的国家。

Solution: SELECT Customers.country, COUNT(*) AS OrderCount, AVG(totalAmount) AS AvgAmount
FROM Customers JOIN Orders ON Customers.custID = Orders.custID
WHERE YEAR(orderDate) = 2023
GROUP BY Customers.country
HAVING COUNT(*) > 10;
This query demonstrates inner join, date filtering, aggregation, and filtering on aggregated data with HAVING. It mirrors real business intelligence dashboards and is directly examinable in Paper 2.

解析:SELECT Customers.country, COUNT(*) AS OrderCount, AVG(totalAmount) AS AvgAmount
FROM Customers JOIN Orders ON Customers.custID = Orders.custID
WHERE YEAR(orderDate) = 2023
GROUP BY Customers.country
HAVING COUNT(*) > 10;
该查询展示了内连接、日期过滤、聚合以及用 HAVING 对聚合结果进行过滤。这类似于真实的商业智能仪表板,是试卷二中直接可考的内容。


5. Turing Machines & Natural Language Processing | 图灵机与自然语言处理

Turing machines provide a theoretical model for language recognition. In computational linguistics, recognising context-free languages (e.g., balanced parentheses or palindrome patterns) is fundamental. Students may be asked to design a simple Turing machine for a linguistic pattern, connecting automata theory to Chomsky’s hierarchy.

图灵机为语言识别提供了理论模型。在计算语言学中,识别上下文无关语言(如平衡括号或回文模式)是基础。学生可能被要求为某个语言模式设计简单的图灵机,从而将自动机理论与乔姆斯基层级联系起来。

Example Question: Design a Turing machine that accepts the language L = {0ⁿ1ⁿ | n ≥ 1} using a single tape. Describe the states and transitions. Explain why this language is not regular, linking to the pumping lemma for regular languages.

题型示例:设计一个使用单带的图灵机,接受语言 L = {0ⁿ1ⁿ | n ≥ 1}。描述状态和转移。解释为何该语言不是正则语言,并与正则语言的泵引理关联。

Solution: The TM marks the first 0 with an X, moves right to find a 1, marks it with Y, then moves left to find the next unmarked 0. States: q0 (start), q1 (search for 1), q2 (return left), q3 (accept). Transitions: q0: read 0, write X, move R, go to q1; read Y, move R, go to q4 (skip marked 1s); else reject. q1: read 0 or Y, move R; read 1, write Y, move L, go to q2; read blank -> reject. q2: read 0 or Y, move L; read X, move R, go to q0. After all 0s are marked and the head sees Y then blank, accept. This language is not regular because a finite automaton cannot count an arbitrary n. By the pumping lemma, any string 0^p 1^p can be pumped to break the equal count. This reinforces links between formal languages and automata taught in the syllabus.

解析:图灵机将第一个 0 标记为 X,向右找到 1 并标记为 Y,然后向左找到下一个未标记的 0。状态设计:q0(初始),q1(寻找 1),q2(返回左侧),q3(接受)。转移:q0: 读 0 写 X 右移到 q1;读 Y 右移到 q4 跳过已标记的 1;否则拒绝。q1: 读 0 或 Y 右移;读 1 写 Y 左移到 q2;读空白则拒绝。q2: 读 0 或 Y 左移;读 X 右移到 q0。当所有 0 都标记后,读带遇到 Y 后空白则接受。该语言不是正则语言,因为有限自动机无法计数任意 n。根据泵引理,任何串 0^p 1^p 都可被泵送打破等量。这加强了形式语言与自动机的联系,正对应考纲内容。


6. Encryption & Number Theory (RSA) | 加密与数论 (RSA)

The RSA algorithm is a direct application of modular arithmetic and prime factorisation. Cambridge candidates must understand public-key encryption and its mathematical underpinnings, often in the context of secure communication protocols.

RSA 算法是模运算和质因数分解的直接应用。剑桥考生需要理解公钥加密及其数学基础,常与安全通信协议情境结合。

Example Question: In a simplified RSA system, choose primes p=11, q=3, so n=33, φ(n)=20. Let e=7. Determine the private key d. Then encrypt the character ‘A’ (ASCII 65) by first converting to a numeric block M=65 mod 33 = 32? Actually RSA on small n requires M < n, so we cannot encrypt 65 directly; instead partition. But for the question: Explain why M must be smaller than n and how to handle larger messages. Compute d such that e·d ≡ 1 (mod 20).

题型示例:在简化 RSA 系统中,选取素数 p=11,q=3,则 n=33,φ(n)=20。令 e=7。求私钥 d。然后说明为何明文 M 必须小于 n,以及如何处理更大消息。计算满足 e·d ≡ 1 (mod 20) 的 d。

Solution: We need d = e⁻¹ mod 20. Solve 7d ≡ 1 mod 20. Testing: 7×3=21≡1 mod 20. So d=3. The condition M < n is required because encryption is done modulo n; if M ≥ n, different plaintexts could map to the same ciphertext, losing uniqueness. In practice, data is split into blocks smaller than n. This question reinforces discrete mathematics and modular inverses, topics shared with Cambridge Mathematics, making it a prime cross-curricular exercise.

解析:需求 d = e⁻¹ mod 20。解 7d ≡ 1 mod 20,尝试得 7×3=21≡1,故 d=3。要求 M < n 是因为加密在模 n 下进行;若 M ≥ n,不同的明文可能映射到相同密文,丧失唯一性。实践中数据会被分割成小于 n 的块。本题强化了离散数学和模逆运算,这些内容与剑桥数学课程共享,是绝佳的跨学科练习。


7. Computer Graphics & Coordinate Geometry | 计算机图形学与坐标几何

Rendering shapes on a screen involves transformations that are essentially matrix multiplications. The Cambridge syllabus includes vectors and matrices at AS, and a combined question can ask you to apply 2D rotation matrices to points stored in a data structure.

在屏幕上渲染图形涉及本质上是矩阵乘法的变换。剑桥 AS 考纲涵盖向量和矩阵,跨学科题目可要求你将二维旋转矩阵应用于存储在数据结构中的点。

Example Question: A triangle with vertices P(2,1), Q(5,1), R(3,4) is to be rotated by 90° anticlockwise about the origin. Write pseudocode that reads an array of coordinates and applies the rotation matrix [0 -1; 1 0] to each vertex. Then discuss how this relates to the trigonometric form of rotation and the efficiency of using matrix multiplication in graphics pipelines.

题型示例:一三角形顶点为 P(2,1), Q(5,1), R(3,4),需绕原点逆时针旋转 90°。编写伪代码,读取坐标数组并对每个顶点应用旋转矩阵 [0 -1; 1 0]。然后讨论这与旋转的三角形式有何关联,以及在图形管线中使用矩阵乘法的效率。

Solution: Pseudocode: for each point (x,y) in array: newX = 0*x + (-1)*y = -y; newY = 1*x + 0*y = x; store (newX, newY). The trigonometric rotation matrix for angle θ is [cosθ -sinθ; sinθ cosθ]. For 90°, cos90=0, sin90=1, giving the same matrix. This matrix–vector multiplication is highly efficient in GPU pipelines because it can be parallelised, reflecting the interplay of geometry, linear algebra and computer hardware architecture.

解析:伪代码:for each point (x,y) in array: newX = -y; newY = x; store (newX, newY)。角度 θ 的三角旋转矩阵为 [cosθ -sinθ; sinθ cosθ]。90° 时 cos90=0, sin90=1,得到相同矩阵。这种矩阵–向量乘法在 GPU 管线中效率极高,因为它可以并行化,这体现了几何、线性代数与计算机硬件架构的相互作用。


8. Error Detection & Communication Channels | 错误检测与通信信道

When data travels over noisy channels, error-detecting codes such as parity bits, checksums or CRC protect integrity. These methods are rooted in information theory, a field shared by computer science and electrical engineering.

当数据在噪声信道上传输时,奇偶校验位、校验和或 CRC 等错误检测码能保护完整性。这些方法植根于信息论,是计算机科学与电气工程共享的领域。

Example Question: A 7-bit ASCII character is transmitted with an even parity bit as the 8th bit. The receiver gets 10110011. The character should be ‘c’ (ASCII 99 = 1100011). Has an error occurred? Explain how a single parity bit can detect an odd number of bit flips. Then suggest why CRC is preferred in network protocols such as Ethernet.

题型示例:一个 7 位 ASCII 字符连同偶校验位作为第 8 位传输。接收端收到 10110011。字符应为 ‘c’ (ASCII 99 = 1100011)。是否发生了错误?解释单个奇偶校验位如何检测奇数个位翻转。并说明为何 CRC 在以太网等网络协议中更受青睐。

Solution: For ‘c’ = 1100011, the number of 1s is four, so the even parity bit should be 0, giving 01100011. The received 10110011 has five 1s, so the parity is odd; an odd number of bit errors (at least one) has occurred. A single parity bit detects any odd number of errors but fails on even numbers. CRC uses polynomial division to produce a multi-bit checksum that can detect burst errors and many even-bit errors with high probability, making it more robust. This links physics of noise, mathematical polynomials, and network protocol design.

解析:对 ‘c’=1100011,1 的个数为 4,偶校验位应为 0,构成 01100011。收到的 10110011 中有五个 1,奇偶性为奇,表明发生了奇数个位错(至少一个)。单个奇偶校验位可检测

Published by TutorHao | Year 12 Computer Science Revision Series | aleveler.com

更多咨询请联系16621398022(同微信)

Comments

屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from aleveler.com

Subscribe now to keep reading and get access to the full archive.

Continue reading