Digital Society · 3 Content
DS3.2 — Algorithms
Digital Society · SL / HL · syllabus-mapped notes
DS3.2.1
What an algorithm is
Algorithms are defined sequential steps or instructions to solve a specific problem or perform a task.
Full note — freeAlgorithms are defined sequential steps or instructions to solve a specific problem or perform a task. The Companion's definition: a procedure or formula for solving a problem that is based on a sequence of steps. Developed in 3.2A–3.2C. Algorithms have existed for thousands of years; the first computer algorithm was written in the 1840s by Ada Lovelace for the Analytical Engine, calculating the Bernoulli numbers. The success of all computer systems depends on algorithms and how they are programmed. They are ubiquitous whether we notice or not, responsible for what appears in social media feeds and which films Netflix recommends. Example Why “defined” and “sequential” matter. Both words point at the characteristics in 3.2A: an algorithm must be unambiguous and finite, with a specified order. A set of vague suggestions is not an algorithm, however useful.
DS3.2.2
Efficiency
The effectiveness of an algorithm is often evaluated according to its efficiency.
The effectiveness of an algorithm is often evaluated according to its efficiency. The Companion's test: an effective algorithm is one that makes an activity more efficient and solves the initial problem. Efficiency in the characteristics and the uses Feasible (3.2A): possible with the available resources …
DS3.2.3
Opportunities and dilemmas of algorithms
The use of algorithms poses significant opportunities and dilemmas in digital society.
The use of algorithms poses significant opportunities and dilemmas in digital society. Developed in 3.2D (uses) and 3.2E (dilemmas). The opportunities One goal of algorithms is to make people's lives easier, organizations more efficient and governments better decision-makers. Online searching and shopping; small businesses gaining …
DS3.2A
Characteristics of an algorithm
Unambiguous, finite, well-defined inputs and outputs, feasible
The guide's four: unambiguous, finite, well-defined inputs and outputs, feasible. The Companion adds independent . Algorithms define instructions carried out in a specific order to obtain an intended output, so they need: 1 Unambiguous : clear and concise; inputs and outputs clear; every step of …
DS3.2B
Components of an algorithm
Instructions, variables, conditionals, loops
The guide's four components: instructions, variables, conditionals, loops. Algorithms have grown far more complex since Lovelace, but the same components recur. 1 Instructions : an algorithm consists of a series of sub-algorithms each performing a small activity; each set of steps for a small activity …
DS3.2C
Ways of representing algorithms
Natural language, flow chart, code, programming languages
The guide's list: natural language, flow chart, code, programming languages. Because algorithms are created independently of a programming language, programmers can develop code in their preferred language, but the algorithm is planned first. 1 Natural language : often the first step of design. Everyday language …
DS3.2D
Uses of algorithms
Three groups in the guide: sorting, searching, filtering, prioritizing, classifying, associating, counting; programming, software development and implementation; machine learning, neural networks and creating other algorithms. Common tasks Sorting : the bubble sort loops and swaps adjacent elements until they are in order; sorting is also …
DS3.2E
Algorithmic dilemmas
The guide's three dilemmas: algorithmic bias and fairness; algorithmic accountability and transparency, black box algorithms; erosion and/or loss of human judgement. Replacing human judgement Algorithms can be better decision-makers, they don't get tired, and decisions are consistent and precise because they are not emotional. Yet …
