Lecture Note 05.1

0.0(0)
studied byStudied by 4 people
0.0(0)
linked notesView linked note
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

hadoken

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

Algorithm

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

2
New cards

Terminating Process

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

3
New cards

Abstract Nature of Algorithms

The difference between an algorithm and its representation.

4
New cards

Algorithm Representation

The formal or informal way of representing an algorithm.

5
New cards

Primitives

Well-defined components used in algorithm representation.

6
New cards

Pseudocode

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

7
New cards

Conditional selection

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

8
New cards

Repeated execution

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

9
New cards

Indentation

A way of showing nested conditions in pseudocode.

10
New cards

Function

A named set of instructions that can be executed.

11
New cards

Pseudocode Primitives

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

12
New cards

Algorithm Discovery

The process of developing an algorithm for a given problem.

13
New cards

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.

14
New cards

Getting a Foot in the Door

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

15
New cards

Iterative Structures

A collection of instructions repeated in a looping manner.

16
New cards

Sequential Search Algorithm

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

17
New cards

Components of Repetitive Control

The pretest loop and posttest loop used in iterative structures.

18
New cards

Insertion Sort Algorithm

An algorithm for sorting a list.

19
New cards

Recursive Structures

Repeating a set of instructions as a subtask of itself.

20
New cards

Binary Search Algorithm

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

21
New cards

Efficiency

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

22
New cards

Correctness

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

23
New cards

Software Verification

The process of proving the correctness of a software program.

24
New cards

Assertions

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

25
New cards

Testing

The process of verifying software by running test cases.

26
New cards

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.

27
New cards

Separating the Chain using only Three Cuts

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

28
New cards

Solving the problem with only One Cut

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

29
New cards

Flowchart Symbols

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