Lecture Note 05.1

studied byStudied by 4 people
0.0(0)
Get a hint
Hint

Algorithm

1 / 28

flashcard set

Earn XP

Description and Tags

hadoken

29 Terms

1

Algorithm

An ordered set of unambiguous, executable steps that defines a terminating process.

New cards
2

Terminating Process

A process that culminates with a result and produces an answer.

New cards
3

Abstract Nature of Algorithms

The difference between an algorithm and its representation.

New cards
4

Algorithm Representation

The formal or informal way of representing an algorithm.

New cards
5

Primitives

Well-defined components used in algorithm representation.

New cards
6

Pseudocode

A language that is between natural language and a programming language used for algorithm representation.

New cards
7

Conditional selection

A primitive that allows for conditional execution of activities based on a condition.

New cards
8

Repeated execution

A primitive that allows for the repetition of a set of instructions until a condition is met.

New cards
9

Indentation

A way of showing nested conditions in pseudocode.

New cards
10

Function

A named set of instructions that can be executed.

New cards
11

Pseudocode Primitives

The building blocks of pseudocode, including assignment, conditional selection, repeated execution, indentation, and defining and executing functions.

New cards
12

Algorithm Discovery

The process of developing an algorithm for a given problem.

New cards
13

Polya's Problem Solving Steps

A set of steps for problem-solving, including understanding the problem, devising a plan, carrying out the plan, and evaluating the solution.

New cards
14

Getting a Foot in the Door

A problem-solving technique that involves working the problem backwards or solving an easier related problem.

New cards
15

Iterative Structures

A collection of instructions repeated in a looping manner.

New cards
16

Sequential Search Algorithm

An algorithm for searching for a target value in a list.

New cards
17

Components of Repetitive Control

The pretest loop and posttest loop used in iterative structures.

New cards
18

Insertion Sort Algorithm

An algorithm for sorting a list.

New cards
19

Recursive Structures

Repeating a set of instructions as a subtask of itself.

New cards
20

Binary Search Algorithm

An algorithm for searching for a target value in a sorted list.

New cards
21

Efficiency

The measure of the number of instructions executed by an algorithm.

New cards
22

Correctness

The property of an algorithm producing the correct result for a given input.

New cards
23

Software Verification

The process of proving the correctness of a software program.

New cards
24

Assertions

Preconditions and loop invariants are used to verify the correctness of a program.

New cards
25

Testing

The process of verifying software by running test cases.

New cards
26

Chain Separating Problem

A problem where a traveler needs to cut the fewest number of links from a chain to pay for lodging each morning.

New cards
27

Separating the Chain using only Three Cuts

A strategy to solve the Chain Separating Problem by making three cuts in the chain.

New cards
28

Solving the problem with only One Cut

A strategy to solve the Chain Separating Problem by making only one cut in the chain.

New cards
29

Flowchart Symbols

Symbols used in flowcharts to represent different actions and decisions in a program.

New cards

Explore top notes

note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 35 people
... ago
5.0(2)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 151 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 4278 people
... ago
4.5(13)

Explore top flashcards

flashcards Flashcard (31)
studied byStudied by 25 people
... ago
5.0(1)
flashcards Flashcard (119)
studied byStudied by 17 people
... ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 8 people
... ago
5.0(2)
flashcards Flashcard (131)
studied byStudied by 10 people
... ago
5.0(2)
flashcards Flashcard (61)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 1 person
... ago
5.0(1)
robot