Back to marketplace

3.2 Writing and Following algorithms

No description yet. This curated deck is ready for daily study.

Total cards: 12•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (12)

#1
Front (Question)

Algorithm

Back (Answer)

An algorithm is a set of instructions so solve a problem or complete some well-defined task in a finite number of steps

#2
Front (Question)

Different types of problems solve by algorithms

Back (Answer)

• Routing • Timetabling • Searching • Encrypting • Sorting • Writing a compiler

#3
Front (Question)

Features of good algorithms

Back (Answer)

• Has clear and precisely stated steps that produce the correct output for any set of valid inputs • Should allow for invalid inputs • Must always terminate at some point • Should perform the task efficiently, in as few steps as possible • Should be designed in such a way that other people will be able to understand it and modify if it necessary

#4
Front (Question)

Pseudocode

Back (Answer)

Halfway house between english statements and a program code

#5
Front (Question)

Bubble sort

Back (Answer)

Swaps items in different passes

#6
Front (Question)

Binary search

Back (Answer)

Must be sorted (divide and conquer)

#7
Front (Question)

Features of a good program

Back (Answer)

Comments to document

#8
Front (Question)

What are some good ways to follow an algorithm?

Back (Answer)

Create a trace table with columns for each variable in the order in which they appear in the program and a column for the output, follow through the algorithm line by line and fill in the value of a variable whenever it changes

#9
Front (Question)

Internet related algorithms

Back (Answer)

Algorithms that are used to manage and manipulate huge amounts of data stored on the internet

#10
Front (Question)

Route-finding algorithms

Back (Answer)

Used to determine the best possible route to transmit packets of data from point A to point B over a network

#11
Front (Question)

Compression algorithms

Back (Answer)

Used to compress data files so that they can be transmitted faster or held in a smaller amount of storage space

#12
Front (Question)

Encryption algorithms

Back (Answer)

Encrypts client to user data connections