What's an algorithm? - David J. Malan
TED-Ed • Published: 2013-05-20T15:19:32Z • 4:58 • intermediate • Technology
Q1. What is the primary purpose of an algorithm?
6 words to learn — tap cards to flip and save favorites.
algorithm
/ˈælɡəˌrɪðəm/
Speaker: pronunciation • Heart: favorite
Definition
A set of rules or instructions for solving a problem or completing a task, typically used in mathematics and computer science.
Example
The algorithm helped the computer sort the data efficiently.
Tap to flip back
pseudocode
/ˈsuːdoʊˌkoʊd/
Speaker: pronunciation • Heart: favorite
Definition
A notation resembling a simplified programming language, used to describe algorithms in a way that is easy for humans to understand.
Example
The teacher asked us to write the algorithm in pseudocode before coding it.
Tap to flip back
initialize
/ɪˈnɪʃəˌlaɪz/
Speaker: pronunciation • Heart: favorite
Definition
To set a variable to a specific value at the beginning of a program or algorithm.
Example
You need to initialize the variable before using it in your calculations.
Tap to flip back
increment
/ˈɪŋkrəˌmɛnt/
Speaker: pronunciation • Heart: favorite
Definition
To increase a numerical value by a specified amount, often by one.
Example
Each time the loop runs, we will increment the count by one.
Tap to flip back
condition
/kənˈdɪʃən/
Speaker: pronunciation • Heart: favorite
Definition
A statement that controls the flow of execution in a program, determining whether certain actions are taken.
Example
The condition in the if statement checks whether the number is greater than zero.
Tap to flip back
buggy
/ˈbʌɡi/
Speaker: pronunciation • Heart: favorite
Definition
Referring to software or code that contains errors or bugs that cause it to function incorrectly.
Example
The program was buggy and crashed every time it was run.
Tap to flip back
Ask about vocabulary, grammar, or the video you are watching.