STEM Workshop: Enhancing Teaching with Generative Programming and AI

Santa Rosa de Lima English Secondary School
聖羅撒英文中學
Colégio de Santa Rosa de Lima - Secção Inglesa
Mr. Peter
22 / April / 2025
Outline
Introduction to LLM and AIGC
1.
Briefly introduce Large Language Models and related applications
The history of Artificial Intelligence
2.
What's the reasoning model
3.
Current popular reasoning models
Future applications
5.
How AIGC will change teacher's world
How to apply AIGC in teaching
4.
Practice in teaching STEM subjects
How Artificial Intelligence worked in the past
The history of AI development

Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
The history of AI development

Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
The history of AI development

Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
The history of AI development

Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
The history of AI development

Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Artificial Intelligence Generated Content
(AIGC)
Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Artificial Intelligence Generated Content (AIGC)
Decision AI
(Traditional AI)
Generative AI
(GAN)
AIGC
(AI generate content)
AIGC development
Artificial Intelligence Generated Content (AIGC)

How AI Works Today
Artificial Intelligence Generated Content (AIGC)

Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
How Large Language Model Works
Artificial Intelligence Generated Content (AIGC)
Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用


Hallucinations
Explainability
Problems of Current Artificial Neural Network
Why content generated from AI cannot be interpreted?
Because ANNs can be referred to as "black box" model

Hello.

Hello! How can I assist you today?

Artificial Neural Network
Input
Output
It is extremely difficult to interpret why the neural network is capable of outputting such message, since it contains over 175 billion parameters
AIGC Example - DeepSeek R1
Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Artificial Intelligence Generated Content (AIGC)
Comparison Item | GPT-4o (Generative Model) | DeepSeek-R1 (Reasoning Model) |
---|---|---|
Model Positioning | Focuses on general natural language processing and multimodal capabilities. Suitable for daily conversations, content generation, translation, and processing of images, audio, and video. | Emphasizes complex reasoning and logic capabilities. Excels in mathematics, programming, and natural language reasoning tasks. Performs well in professional and high-difficulty scenarios, especially in Chinese. |
Reasoning Ability | Balanced performance in everyday language tasks, but relatively low accuracy in complex logical reasoning (e.g., solving math problems). | Outstanding performance in complex reasoning tasks, especially in mathematics and code reasoning. Achieves higher accuracy than GPT-4o in some benchmarks (e.g., GPQA). |
Multimodal Support | Supports input in text, image, audio, and even video, enabling multimodal information processing. | Currently supports mainly text input and lacks capabilities for image and multimodal processing. |
Application Scenarios | Suitable for a wide range of general-purpose tasks such as conversation, content generation, multimodal information processing, and multilingual translation and communication. Targeted at mass market and commercial applications. | Suitable for tasks requiring high-precision reasoning and logical analysis, such as math competitions, programming challenges, and scientific research. Ideal for structured tasks like interview outlines or solution planning. |
Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Artificial Intelligence Generated Content (AIGC)
Advantages | Disadvantages |
---|---|
Strong reasoning ability for deduction or induction (e.g., riddles, mathematical proofs) | Slow response speed and high computational cost (requires more reasoning time) |
Outstanding chain-of-thought reasoning (good at breaking down multi-step problems) | More prone to errors in knowledge-based tasks (easily produces hallucinations) |
Excels in complex decision-making tasks | Low efficiency in handling simple tasks (prone to "overthinking") |
Advantages and Disadvantages of Inference Models
Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Artificial Intelligence Generated Content (AIGC)

DeepSeek Performance
Artificial Intelligence Generated Content (AIGC)
Scaling Law in Large Artificial Neural Network

Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Artificial Intelligence Generated Content (AIGC)
Three Important Impacts of DeepSeek
1. 思維鏈(Chain of Thought)
2. 蒸餾(Distillation)
3. 強化學習(Reinforcement Learning)
Reference: 北京大学 - DeepSeek内部研讨系列:DeepSeek与AIGC应用
Artificial Intelligence Generated Content (AIGC)
Models | |
---|---|
DeepSeek-R1-671B | Full-powered version (滿血版), most capable. |
DeepSeek-R1-Distill-Qwen-7B | Distillation version |
DeepSeek-R1-Distill-Llama-8B | Distillation version |
DeepSeek-R1-Distill-Qwen-14B | Distillation version |
DeepSeek-R1-Distill-Qwen-32B | Distillation version |
DeepSeek-R1-Distill-Llama-70B | Distillation version |
Different versions of DeepSeeks
Practical Exercises
Large Language Models (LLM)





LLM Demonstration:
Teaching Materials

Physic Problem
1. A car is moving at a speed of 60 km/h.
2. The car has an acceleration of -5 km/h².
LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. A car is moving at a speed of 60 km/h.
2. The car has an acceleration of -5 km/h².
Please write Python code to plot a chart of this physics problem that clearly demonstrates the position versus time for this car.
Teaching Materials
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. A car is moving at a speed of 60 km/h.
2. The car has an acceleration of -5 km/h².
Please write Python code to plot a chart of this physics problem that clearly demonstrates the position versus time for this car.


LLM Demonstration:
Teaching Materials

Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. A car is moving at a speed of 60 km/h.
2. The car has an acceleration of -5 km/h².
Please write Python code to plot a chart of this physics problem that clearly demonstrates the position versus time for this car.


LLM Demonstration:
Teaching Materials

LLM Demonstration:
Teaching Materials
Physic Problem
Car A follows Car B in a straight line on the freeway. The cars are initially separated by 50 m, and both cars have an initial velocity of 40 m/s. At t = 0, Car B slams on the brakes, inducing an acceleration with magnitude 12 m/s², but Car A doesn’t slow down.

LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. Car A is traveling at a constant velocity of 40 m/s.
2. Car B is initially traveling at 40 m/s, but begins braking abruptly at t = 0 seconds, resulting in an acceleration (actually deceleration) of a = -12 m/s².
3. The initial distance between the two cars is 50 meters.
4. The question is: Will car A collide with car B? If so, after how much time will the collision occur, and at what location?
Please write Python code to plot a chart of the physics problem that can clearly demonstrated the position and time of two cars.
Teaching Materials
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. Car A is traveling at a constant velocity of 40 m/s.
2. Car B is initially traveling at 40 m/s, but begins braking abruptly at t = 0 seconds, resulting in an acceleration (actually deceleration) of a = -12 m/s².
3. The initial distance between the two cars is 50 meters.
4. The question is: Will car A collide with car B? If so, after how much time will the collision occur, and at what location?
Please write Python code to plot a chart of the physics problem that can clearly demonstrated the position and time of two cars.

LLM Demonstration:
Teaching Materials


Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. Car A is traveling at a constant velocity of 40 m/s.
2. Car B is initially traveling at 40 m/s, but begins braking abruptly at t = 0 seconds, resulting in an acceleration (actually deceleration) of a = -12 m/s².
3. The initial distance between the two cars is 50 meters.
4. The question is: Will car A collide with car B? If so, after how much time will the collision occur, and at what location?
Please write Python code to plot a chart of the physics problem that can clearly demonstrated the position and time of two cars.

LLM Demonstration:
Teaching Materials


LLM Demonstration:
Teaching Materials
Physic Problem
Two masses of 10kg and 20kg are connected by a massless spring as shown. A force of 200N acts on the 20kg mass. At a certain instant, the acceleration of 10kg mass is 12 m/s². The acceleration of the 20kg mass at that instant is.

LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. There are two objects: 10 kg and 20 kg, connected by a massless spring.
2. An external force of 200 N is applied to the 20 kg object, directed to the right.
3. At a certain moment, the acceleration of the 10 kg object is 12 m/s².
4. What is the acceleration of the 20 kg object at this moment?
Please write Python code to plot a chart of the physics problem that can clearly demonstrated the changing of the acceleration of the 20 kg object at different moment.
Teaching Materials
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. There are two objects: 10 kg and 20 kg, connected by a massless spring.
2. An external force of 200 N is applied to the 20 kg object, directed to the right.
3. At a certain moment, the acceleration of the 10 kg object is 12 m/s².
4. What is the acceleration of the 20 kg object at this moment?
Please write Python code to plot a chart of the physics problem that can clearly demonstrated the changing of the acceleration of the 20 kg object at different moment.

LLM Demonstration:
Teaching Materials


Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. There are two objects: 10 kg and 20 kg, connected by a massless spring.
2. An external force of 200 N is applied to the 20 kg object, directed to the right.
3. At a certain moment, the acceleration of the 10 kg object is 12 m/s².
4. What is the acceleration of the 20 kg object at this moment?
Please write Python code to plot a chart of the physics problem that can clearly demonstrated the changing of the acceleration of the 20 kg object at different moment.

LLM Demonstration:
Teaching Materials


LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the Brownian motion physics problem to illustrate the principles to your students.
Please write Python code to the physics problem that can clearly demonstrated the Brownian motion.
You also need matplotlib.rc to set the animation format and HTML(anim.to_jshtml()) for displaying the animation
Teaching Materials
LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the physic of ball falling down to illustrate the principles to your students.
You also need matplotlib.rc to set the animation format and HTML(anim.to_jshtml()) for displaying the animation
Teaching Materials
LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the physic of pendulum wave to illustrate the principles to your students.
You also need matplotlib.rc to set the animation format and HTML(anim.to_jshtml()) for displaying the animation
Teaching Materials
LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the Solar System motion physics to illustrate the principles to your students.
Please write Python code that can clearly demonstrated the Solar System motion, only includes earth, moon and sun.
You also need matplotlib.rc to set the animation format and HTML(anim.to_jshtml()) for displaying the animation
Teaching Materials
LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a computer science teacher, you are using Python to simulate the algorithm of bubble sorting to illustrate the principles to your students.
You also need matplotlib.rc to set the animation format and HTML(anim.to_jshtml()) for displaying the animation
Teaching Materials
LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. Car A is traveling at a constant velocity of 40 m/s.
2. Car B is initially traveling at 40 m/s, but begins braking abruptly at t = 0 seconds, resulting in an acceleration (actually deceleration) of a = -12 m/s².
3. The initial distance between the two cars is 50 meters.
4. The question is: Will car A collide with car B? If so, after how much time will the collision occur, and at what location?
Create the animation to simulate the car movement and collision time and position.
You also need matplotlib.rc to set the animation format and HTML(anim.to_jshtml()) for displaying the animation
Teaching Materials
LLM Demonstration:
1.
You can ask the AI to generate a chart with the following prompt
Assuming you are a physics teacher, you are using Python to simulate the following physics problem to illustrate the principles to your students.
1. Car A is traveling at a constant velocity of 40 m/s.
2. Car B is initially traveling at 40 m/s, but begins braking abruptly at t = 0 seconds, resulting in an acceleration (actually deceleration) of a = -12 m/s².
3. The initial distance between the two cars is 50 meters.
4. The question is: Will car A collide with car B? If so, after how much time will the collision occur, and at what location?
Create the animation to simulate the car movement and collision time and position.
You also need matplotlib.rc to set the animation format and HTML(anim.to_jshtml()) for displaying the animation
Teaching Materials
LLM Demonstration:
Teaching Materials
LLM Demonstration:
Teaching Materials
两个正方形滑块,一个小块(质量为 m),一个大块(质量为 M),紧密接触放置在倾角为 θ 的光滑无摩擦斜面上。两块之间存在摩擦力。由于重力作用,它们开始下滑,小块不会从大块上滑落,两者一起向下加速运动。画面应真实展现物理效果,包括重力、支持力、加速度以及相对运动。以慢动作呈现它们一起滑动的过程。
可靈AI
豆包AI
Thank you
Introduction To AIGC
By Mr Peter
Introduction To AIGC
- 243