Skip to content

3.16 Simulations 模拟

Programmers break down problems into smaller and more manageable pieces. By creating procedures and leveraging parameters, programmers generalize processes that can be reused. Procedures allow programmers to draw upon existing code that has already been tested, allowing them to write programs more quickly and with more confidence.

  • 程序员将问题分解为更小和更易管理的部分。通过创建过程和利用参数,程序员泛化可以重用的过程。过程允许程序员利用已经测试过的现有代码,使他们能够更快、更有信心地编写程序。

核心要点 Core Points

  1. Simulations are abstractions of more complex objects or phenomena for a specific purpose.

    • 模拟是更复杂对象或现象的抽象,用于特定目的。
  2. A simulation is a representation that uses varying sets of values to reflect the changing state of a phenomenon.

    • 模拟是使用不同值集来反映现象变化状态的表示。
  3. Simulations often mimic real-world events with the purpose of drawing inferences, allowing investigation of a phenomenon without the constraints of the real world.

    • 模拟经常模仿现实世界事件,目的是得出推论,允许在没有现实世界约束的情况下调查现象。
  4. The process of developing an abstract simulation involves removing specific details or simplifying functionality.

    • 开发抽象模拟的过程涉及移除特定细节或简化功能。
  5. Simulations can contain bias derived from the choices of real-world elements that were included or excluded.

    • 模拟可能包含来自包含或排除的现实世界元素选择的偏见。
  6. Simulations are most useful when real-world events are impractical for experiments (e.g., too big, too small, too fast, too slow, too expensive, or too dangerous).

    • 当现实世界事件不适合实验时(例如,太大、太小、太快、太慢、太昂贵或太危险),模拟最有用。
  7. Simulations facilitate the formulation and refinement of hypotheses related to the objects or phenomena under consideration.

    • 模拟有助于制定和完善与所考虑对象或现象相关的假设。
  8. Random number generators can be used to simulate the variability that exists in the real world.

    • 随机数生成器可用于模拟现实世界中存在的变异性。

学生活动 Student Activities

  1. For simulations:
    • 对于模拟:
    • Explain how computers can be used to represent real-world phenomena or outcomes.
      • 解释计算机如何用于表示现实世界的现象或结果。
    • Compare simulations with real-world contexts.
      • 将模拟与现实世界背景进行比较。

基于 VitePress 构建的 AP CSP 学习平台