← 返回资讯屏轩教育 · 行业资讯

Edexcel Year 13 Computer Science: Key Formulas & Theorems Quick Reference | Edexcel 计算机 Year 13 公式定理速查手册

2026-07-22 15:45 · 本文部分内容由AI辅助创作

📚 Edexcel Year 13 Computer Science: Key Formulas & Theorems Quick Reference | Edexcel 计算机 Year 13 公式定理速查手册

This revision card consolidates the essential formulas, theorems, and computational laws required for the Edexcel A Level Computer Science (Year 13) exam. Use it as a rapid recap to reinforce your understanding of algorithmic complexity, Boolean algebra, graph algorithms, networking, encryption, and database normalisation.

这份速查卡汇总了 Edexcel A Level 计算机科学(Year 13)考试所需的必备公式、定理与计算法则。将其用于快速回顾,以巩固你对算法复杂度、布尔代数、图算法、网络通信、加密和数据库范式的理解。

1. Time Complexity: Big O Notation | 时间复杂度:大O表示法

Big O notation describes the upper bound of an algorithm's growth rate. It expresses how runtime or memory usage scales with input size n, ignoring constant factors.

大O表示法描述算法增长速率的上界。它表达运行时间或内存使用如何随输入规模 n 变化,并忽略常数因子。

Typical ranking: O(1) < O(log n) < O(n) < O(n log n) < O(n²) < O(2ⁿ)


2. Sorting Algorithms Complexity | 排序算法复杂度

Sorting algorithms are fundamental. Their time and space complexities vary across best, average, and worst cases. Below is a summary table for the key sorts.

排序算法是基础。它们的时间与空间复杂度在最好、平均和最坏情况下各不相同。下表总结了关键排序算法。

AlgorithmBestAverageWorstSpace
Bubble SortO(n)O(n²)O(n²)O(1)
Insertion SortO(n)O(n²)O(n²)O(1)
Merge SortO(n log n)O(n log n)O(n log n)O(n)
Quick SortO(n log n)O(n log n)O(n²)O(log n)

Merge sort guarantees O(n log n) but requires additional O(n) memory. Quick sort is in‑place but degrades to O(n²) if the pivot is poorly chosen.

归并排序保证 O(n log n) 但需要额外的 O(n) 内存。快速排序是原地排序,但如果枢轴选择不当会退化至 O(n²)。


3. Search Algorithms Complexity | 搜索算法复杂度

Search algorithms locate a target element. The choice depends on whether the data is sorted.

搜索算法用于定位目标元素。选择依赖于数据是否有序。


4. Data Structure Operations Complexity | 数据结构操作复杂度

This quick reference lists common operations for core data structures using average time complexity.

本速查表列出核心数据结构常用操作的平均时间复杂度。

Data StructureAccessSearchInsertDelete
ArrayO(1)O(n)O(n)O(n)
Linked ListO(n)O(n)O(1)O(1)
Stack / QueueO(n)O(n)O(1)O(1)
Binary Search Tree (balanced)O(log n)O(log n)O(log n)O(log n)
Hash TableN/AO(1)O(1)O(1)

For stacks and queues, insert/delete is O(1) because you only add/remove at the ends. Hash table O(1) assumes a good hash function with low collision.

栈和队列的插入/删除为 O(1),因为你仅在端点操作。哈希表的 O(1) 假设有良好的散列函数和低冲突率。


广告 / Sponsored

5. Boolean Algebra Laws | 布尔代数定律

Boolean algebra is used to simplify logic circuits. The main laws are listed below. (A, B, C represent Boolean variables)

布尔代数用于化简逻辑电路。主要定律如下。(A, B, C 代表布尔变量)

Use De Morgan's and distributive laws to convert between sum-of-products and product-of-sums forms.

利用德摩根定律和分配律可在“积之和”与“和之积”形式间转换。


6. Karnaugh Maps & Simplification | 卡诺图与化简

A Karnaugh map (K-map) is a visual tool for simplifying Boolean expressions of up to 4 variables. Cells are arranged so that adjacent cells differ by only one variable, enabling grouping of 1s in powers of two (1,2,4,8).

卡诺图(K-map)是一种化简多达 4 个变量布尔表达式的可视化工具。格子排列使得相邻格子仅相差一个变量,从而可将 1 按 2 的幂次方(1,2,4,8)分组。

Steps: 1) Fill in the K-map from truth table. 2) Circle groups of adjacent 1s (wrapping allowed). 3) Each group corresponds to a product term where variables that change are eliminated. 4) OR the simplified terms.

步骤:1) 根据真值表填充卡诺图。2) 圈出相邻的 1 组(允许环绕边界)。3) 每组对应一个乘积项,其中发生变化的变量被消除。4) 将化简项求或。

For 3 variables: 8 cells; for 4 variables: 16 cells.


7. Graph Algorithms: Dijkstra & A* | 图算法:Dijkstra 与 A*

Dijkstra's algorithm finds the shortest path from a start node to all others in a graph with non‑negative weights.

Dijkstra 算法在非负权重的图中找出从起点到所有其他节点的最短路径。

It uses a priority queue and repeatedly selects the unvisited node with the smallest tentative distance, updating neighbours. Time complexity with a binary heap: O((V + E) log V).

它采用优先队列,反复选择具有最小暂定距离的未访问节点,并更新邻居。使用二叉堆的时间复杂度:O((V + E) log V)。

goal) in addition to the actual cost g(n). Its evaluation function is f(n) = g(n) + h(n).

A* 是一种知情搜索算法,除了实际代价 g(n) 外,还使用启发函数 h(n)(估计到目标的代价)。其评估函数为 f(n) = g(n) + h(n)。

For A* to be optimal, the heuristic must be admissible (never overestimates the true cost).

为使 A* 最优,启发函数必须可采纳(不高估实际代价)。


8. Computational Theory: Halting Problem | 计算理论:停机问题

The Halting Problem asks whether a given program will finish running or run forever on a particular input. Turing proved that a general algorithm to solve the halting problem for all possible program‑input pairs cannot exist — it is undecidable.

停机问题询问:给定程序对于特定输入是否会终止或永远运行。图灵证明,不存在一个通用算法能为所有可能的程序-输入对判定停机——它是不可判定的。

The proof uses a diagonalisation argument: assume a halting oracle H(P, I) exists, then construct a paradoxical program that contradicts H.

证明采用对角化论证:假设存在一个停机预言机 H(P, I),然后构造一个会导致矛盾的悖论程序。

Recognising decidable vs undecidable problems is a key part of the theory of computation.

识别可判定与不可判定问题是计算理论的关键部分。


9. Database Normalisation | 数据库范式

Normalisation reduces data redundancy and prevents update anomalies. The three normal forms required for Edexcel A Level are:

范式化减少数据冗余并防止更新异常。Edexcel A Level 要求掌握的三个范式为:

Functional dependency X → Y means that a value of X uniquely determines a value of Y.

函数依赖 X → Y 表示 X 的值唯一确定 Y 的值。


10. Network Performance Formulas | 网络性能公式

Network performance is measured using transmission time, propagation delay, and throughput.

网络性能通过传输时间、传播延迟和吞吐量衡量。

Transmission time = Data size (bits) / Bandwidth (bps)

Transmission time is the time to push all bits onto the wire.

传输时间是将所有比特推入线路所需的时间。

Propagation delay = Distance / Propagation speed

Propagation delay is the time for one bit to travel from sender to receiver.

传播延迟是一个比特从发送方到达接收方的时间。

Total latency = Transmission time + Propagation delay + Queuing + Processing

总延迟 = 传输时间 + 传播延迟 + 排队时延 + 处理时延。

Packet delivery time = Packet size / Bandwidth


11. Floating Point Binary Representation | 浮点数二进制表示

A floating‑ y normalised so the most significant bit is 1 (for positive) or 0 (for negative) immediately after the sign bit, maximising precision.

浮点数以 尾数 × 2^指数 的形式存储。尾数通常经过规格化,使正数符号位后紧随的最高位为 1,负数紧随 0,以最大化精度。

Convert decimal to binary: write the integer and fractional parts separately, combine, then adjust exponent until the binary point is right after the first 1 (normalisation).

十进制转换为二进制:分别写出整数和小数部分,组合后调整指数直到小数点紧跟第一个 1(规格化)。

For example, 5.75₁₀ = 101.11₂ = 1.0111 × 2². In a 8‑bit mantissa with 4‑ nent 0010 (but actual representation depends on the format, including sign bits and bias).

例如,5.75₁₀ = 101.11₂ = 1.0111 × 2²。在 8 位尾数 4 位指数格式中,尾数存储为 10111000,指数 0010(实际表示依赖于格式,包括符号位和偏置)。


12. RSA Encryption | RSA 加密

RSA is an asymmetric encryption algorithm relying on the difficulty of factoring large composites.

RSA 是一种非对称加密算法,依赖于分解大合数的困难性。

The security relies on the fact that deriving d from (n, e) requires φ(n), which in turn requires factoring n.

安全性依赖于从 (n, e) 推导 d 需要 φ(n),而计算 φ(n) 又需要分解 n。

Example: p=61, q=53 → n=3233, φ=3120. Let e=17 → d=2753 (since 17×2753 mod 3120 = 1).


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

广告 / Sponsored
培生爱德思计算机科学学生用书教材Pearson Edexcel International GCSE Computer…
计算机 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥349.0

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

备考资讯每日更新,关注不错过
考纲变化 · 科目分析 · 学习方法
扫码关注公众号 tutorhao
在微信里长按二维码识别关注
或截图后用「扫一扫 → 相册」选择本图
公众号:tutorhao