First exams 2027 · SL & HL 2027 年首次开考 · SL 与 HL

B1.1.1 · Approaches to computational thinking

B1.1.1 · 计算思维的方法

Problem Specification

问题规格说明

Before a single line of code gets written, every real software project starts with a document nobody using the finished app will ever see: a precise description of exactly what problem is being solved, for whom, and how success will actually be measured.

在写下第一行代码之前,每一个真正的软件项目都始于一份最终用户永远不会看到的文档:精确描述究竟要解决什么问题、为谁解决,以及最终将如何衡量成功。

Core for SL & HL SL 与 HL 核心内容 Typically 4–6 marks · AO2 通常 4–6 分 · AO2 Command term: construct 命令词:construct(构建)
B1's own guiding question B1 的核心引导问题

How can we apply a computational solution to a real-world problem? Every statement in this topic comes back to this question, and constructing a problem specification is the very first step in answering it: you cannot design a solution to a problem you haven't precisely defined yet.

我们如何将计算解决方案应用于现实世界的问题?本主题中的每一条考纲陈述都会回到这个问题,而构建问题规格说明正是回答这个问题的第一步:你无法为一个尚未精确定义的问题设计解决方案。

Explainer

讲解

Df

A problem specification pins down exactly what a proposed solution has to achieve, before any design or coding begins. It typically includes six parts: a problem statement, constraints and limitations, objectives and goals, input specifications, output specifications, and evaluation criteria.

问题规格说明在任何设计或编码开始之前,精确界定了拟议解决方案必须达成的目标。它通常包含六个部分:问题陈述、限制与约束、目标与目的、输入规格、输出规格,以及评估标准。

!

A stakeholder is any individual or group affected by, or with an interest in, the problem and its eventual solution. Identifying every real stakeholder, not just the most obvious one, is what a complete problem specification actually depends on.

利益相关者是指受该问题及其最终解决方案影响、或对其有利害关系的任何个人或群体。识别每一个真正的利益相关者,而不只是最明显的那一个,才是一份完整的问题规格说明真正依赖的关键。

Worked example

示例讲解

Building one, piece by piece

逐步构建一份规格说明

A community sports club's members currently book courts by phoning the front desk, and double-bookings happen most weekends. Watch each of the six parts get built for this exact problem, a rough first attempt followed by a properly specified version.

某社区体育俱乐部的会员目前通过致电前台预订场地,大多数周末都会出现重复预订的情况。请看这六个部分如何针对这个具体问题逐一构建:先是一次粗略的初次尝试,再到一份妥善规格化的版本。

Constructing the club's problem specification 构建俱乐部的问题规格说明 Step 1 of 6
A person writing out a problem on a whiteboard.

Problem statement: names the actual problem, the people it affects, and what a solution would have to fix.

问题陈述:说明实际的问题、受影响的人群,以及解决方案必须解决的事项。

Rough attempt"The booking system isn't working well."
粗略尝试"预订系统运作得不太好。"
Properly specified"Members currently book courts by phoning the front desk during opening hours. Because two staff members can accept calls at once with no shared record, an average of 6 courts per week are double-booked, causing member complaints and lost court time."
妥善规格化"会员目前在开放时间内通过致电前台预订场地。由于两名工作人员可同时接听电话,却没有共享记录,平均每周有 6 个场地出现重复预订,导致会员投诉并造成场地时间的浪费。"
A person reviewing a budget and figures at a desk.

Constraints and limitations: the real boundaries the solution has to work within.

限制与约束:解决方案必须在其中运作的真实边界。

Rough attempt"We don't have a big budget."
粗略尝试"我们没有很多预算。"
Properly specified"The solution must run on the club's existing budget of $2,000 and be usable by front-desk staff and members over 60 with no prior app experience, since a third of the membership falls into that group."
妥善规格化"解决方案必须在俱乐部现有的 2000 美元预算内运作,并且必须让前台工作人员以及没有应用程序使用经验的 60 岁以上会员也能使用,因为三分之一的会员属于这一群体。"
A person standing beside a target with a dot at its centre, representing a goal.

Objectives and goals: a broad, aspirational objective, backed by specific, measurable goals.

目标与目的:一个宏观、有抱负的总体目标,并由具体、可衡量的分项目标支撑。

Rough attempt"Make booking better."
粗略尝试"让预订变得更好。"
Properly specified"Objective: eliminate double-bookings and reduce staff time spent managing court schedules. Goal: reduce double-bookings from 6 per week to 0, and cut staff scheduling time by 50%, within two months of launch."
妥善规格化"总体目标:消除重复预订,并减少工作人员管理场地排程所花费的时间。分项目标:在上线后两个月内,将每周重复预订次数从 6 次降至 0 次,并将工作人员的排程时间减少 50%。"
A person carrying a form toward a document, representing data being entered.

Input specifications: exactly what kind of data goes in, in what form, and what a valid piece of that data actually looks like.

输入规格:准确说明输入的数据类型、数据形式,以及一条有效数据实际应呈现的样子。

Rough attempt"People enter their booking."
粗略尝试"人们输入他们的预订。"
Properly specified"A member's name, membership number, chosen court, and a date and start time selected from the courts that are actually still available at that moment, entered through a touchscreen kiosk at the front desk or a phone browser."
妥善规格化"会员的姓名、会员编号、所选场地,以及从当时实际仍可预订的场地中选择的日期与开始时间,通过前台的触摸屏自助终端或手机浏览器输入。"
A person reviewing a search result on a laptop, representing a produced output.

Output specifications: exactly what the solution hands back once it's done, and how that result is actually shown to whoever's waiting for it.

输出规格:准确说明解决方案完成后返回的内容,以及该结果实际如何呈现给等待结果的人。

Rough attempt"It shows the booking."
粗略尝试"它显示预订信息。"
Properly specified"An on-screen confirmation showing the court, date and time booked; an emailed confirmation the member can show at the club; and a live, colour-coded court availability grid staff can view at the front desk."
妥善规格化"屏幕上显示已预订场地、日期与时间的确认信息;通过电子邮件发送会员可在俱乐部出示的确认信息;以及工作人员可在前台查看的实时彩色编码场地可用情况表。"
A person standing next to a checklist with a tick mark, representing measurable evaluation criteria.

Evaluation criteria: clear, specific, measurable standards the finished solution will actually be judged against.

评估标准:清晰、具体、可衡量的标准,最终解决方案将依据这些标准接受实际评判。

Rough attempt"It should work well and members should like it."
粗略尝试"它应该运作良好,而且会员应该会喜欢它。"
Properly specified"Zero double-bookings recorded over a full month of use; a booking completed by a first-time user in under 90 seconds without staff assistance; at least 80% of surveyed members rating the new system easier than phoning in."
妥善规格化"在整整一个月的使用期间,记录到的重复预订次数为零;首次使用者无需工作人员协助,能在 90 秒内完成一次预订;接受调查的会员中,至少 80% 认为新系统比打电话预订更方便。"
!

The pattern across all six parts: every "properly specified" version replaces a vague word ("better," "well," "isn't working") with something concrete and checkable, a number, a named group, a specific format. That's the actual skill "construct a problem specification" is testing.

贯穿这六个部分的规律:每一个"妥善规格化"的版本,都用具体、可核实的内容(一个数字、一个明确指出的群体、一种特定的格式)取代了模糊的字眼("更好""良好""运作不佳")。这正是"构建问题规格说明"这项技能真正考察的能力。

Check your understanding

检验你的理解

Which of the following is the strongest evaluation criterion for a new library self-checkout system?

以下哪一项是新图书馆自助借还系统最有力的评估标准?

Common mistake

常见错误

Markers reported this pattern when problem specifications were assessed 考官在评阅问题规格说明时报告了这一模式

RecurringA genuinely documented pattern: candidates identify only the most obvious stakeholder (usually the end user) and miss others whose needs also shape the specification, such as the people who will maintain the system, or those funding it. Leaving a real stakeholder out means their actual requirements never make it into the specification at all, which can mean the finished solution solves the wrong problem for them.

反复出现这是一个真实记录在案的模式:考生只识别出最明显的利益相关者(通常是最终用户),而遗漏了其他同样影响规格说明的人,例如日后负责维护系统的人员,或为其提供资金的人。遗漏一个真正的利益相关者,意味着他们的实际需求根本没有被纳入规格说明,这可能导致最终的解决方案为他们解决了错误的问题。

✕

Only one stakeholder considered: "The stakeholders are the club members who will use the booking system." True, but the front-desk staff who will operate the system daily, and the club's committee who is paying for it, are stakeholders too, each with their own genuine requirements.

只考虑了一个利益相关者: "利益相关者是将使用预订系统的俱乐部会员。" 这没错,但每天操作系统的前台工作人员,以及为此付费的俱乐部委员会,同样也是利益相关者,各自都有自己真正的需求。

✓

Multiple stakeholders, each with real requirements: "Stakeholders include the members (who need a fast, simple way to book), the front-desk staff (who need to see and resolve conflicts easily), and the club committee (who need the solution to stay within budget)." Names several genuinely different groups, each contributing a requirement the specification actually needs to satisfy.

多个利益相关者,各自都有真实需求: "利益相关者包括会员(需要一种快速、简便的预订方式)、前台工作人员(需要能轻松查看并解决冲突),以及俱乐部委员会(需要解决方案保持在预算范围内)。" 列出了几个确实不同的群体,每个群体都提出了规格说明实际需要满足的一项需求。

Revision questions

复习题

Past-paper style. Write an answer, then reveal the marking points and mark yourself.

采用历年真题风格。写下答案,然后展开评分要点给自己打分。

Question 1 · 2 marks 第 1 题 · 2 分

[2]Define the term stakeholder.

[2]定义术语利益相关者(stakeholder)。

Question 2 · 3 marks 第 2 题 · 3 分

[3]Explain why an objective needs at least one specific, measurable goal attached to it.

[3]解释为什么一个总体目标需要至少附加一个具体、可衡量的分项目标。

Question 3 · 6 marks 第 3 题 · 6 分

[6]A school wants to build a system to reduce the number of lost library books. Construct a problem specification for this scenario, including a problem statement, one constraint, and one measurable evaluation criterion.

[6]某学校想要建立一个系统,以减少图书馆丢失书籍的数量。请为该情境构建一份问题规格说明,包括一项问题陈述、一项限制条件,以及一项可衡量的评估标准。

Flashcards

记忆卡片

Active recall for this statement’s key terms.

针对本条考纲陈述关键术语的主动回忆练习。

Prototype render · mistake pattern grounded in real IB CS 2027 marker-report findings · not yet wired to live routes