Article (English)
Computation: Coding, Data and AI
Algorithms and Coding
An algorithm is a set of step-by-step instructions to solve a problem, like a recipe. Code is an algorithm written in a language a computer understands.
Building blocks of code:
- Sequence: steps in order.
- Selection: if... then... else, to make choices.
- Iteration: loops that repeat.
- Variables: named stores for data, such as score.
- Functions: reusable blocks.
Debugging means finding and fixing mistakes. Test with different inputs, and fix one thing at a time.
Data
Data is information such as numbers, words, pictures and sounds. Computers store data as binary (1s and 0s). They can sort, search and show data in charts to help us decide things.
What Is AI?
Artificial intelligence (AI) is software that learns patterns from large amounts of data to make predictions or create new content, such as recognising speech or suggesting a film. Generative AI can write text or make pictures.
- AI does not think or feel like a person.
- AI can make mistakes and say things that sound confident but are wrong.
- AI can be biased if the data it learned from is unfair or incomplete.
Using AI Safely and Well
- Check facts in trusted sources. Do not assume AI is right.
- Never share personal details, such as your full name, school, address or photos, with an AI tool.
- Be honest: if you used help from AI, say so, and do your own thinking.
- Ask an adult before using AI tools. Many have age limits.
- Be kind: do not use AI to make fake or hurtful pictures or messages about people.
- Tell a trusted adult if something online upsets you.
Digital Citizenship
Use technology legally, respectfully and safely. Protect your passwords, respect other people's work (copyright), and think before you share.
Computing and Wales
Wales has a growing digital sector, and the Welsh Government and Hwb support digital skills in schools. Computers can also help protect the Welsh language, for example through Welsh-language apps and voice tools.
Curriculum link: Curriculum for Wales framework (Hwb), Science and Technology, statement of what matters: "Computation is the foundation for our digital world", including understanding what computers can do and the legal, social and ethical consequences of technology