CSS100 - CHAPTER 2

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

46 Terms

1
New cards

natural language

the language we speak and write in our everyday lives

2
New cards

pseudocode

A notation used to design algorithms. It uses English constructs, mathematical notation and an informal algorithmic structure designed to look like a high-level programming language.

3
New cards

three basic sequential operations

computation, input, output

4
New cards

computation operation

An algorithmic operation that carries out a single numeric computation and stores the result

5
New cards

variable

- A named storage location that can hold a data value

- simply a named storage location that can hold a data value.

6
New cards

input operation

An operation that causes data values from the outside world to be brought into the algorithm

7
New cards

output operation

An operation that causes computed values to be sent to the outside world for viewing or saving

8
New cards

sequential algorithm

An algorithm that executes its operations in a straight line, from top to bottom, without any branching

9
New cards

sequential algorithm

sometimes termed as a “straight-line algorithm”

10
New cards

iterative operations

Algorithmic operation that repeats a block of instructions

11
New cards

control operations

Operations that alter the normal sequential flow of control within an algorithm

12
New cards

conditional statements

Algorithmic operation that asks a question and selects the next step to carry out based on the answer to that question

13
New cards

conditional statements

“question-asking” operations of an algorithm

14
New cards

loop

the repetition of a block of instructions

15
New cards

iteration

The repetitive execution of a block of operations

16
New cards

continuation condition

The true/false condition in an iterative statement that will determine when the iteration has been completed

17
New cards

loop body

The block of statements/operations that are to be repetitively executed

18
New cards

pretest loop

the continuation condition is tested at the beginning of each pass through the loop, and therefore it is possible for the loop body never to be executed.

19
New cards

posttest loop

This type of iteration performs all the algorithmic operations contained in the loop body before it evaluates the true/false condition specified at the end of the loop.

20
New cards

pretest loop

uses a While/Do statement

21
New cards

posttest loop

uses a Do/While statement

22
New cards

primitive operations

An operation that can be directly understood by the computing agent executing the algorithm and which does not have to be further clarified or explained

23
New cards

algorithm discovery

The process of finding an algorithmic solution to a given problem

24
New cards

input data

The selection of an algorithm to solve a problem is greatly influenced by the way the ____ for that problem is organized.

25
New cards

sorting algorithm

puts an unordered list of numbers into ascending order

26
New cards

library

A collection of useful prewritten algorithms that can be used during problem solving

27
New cards

pattern matching

The process of searching for a special pattern of symbols within a larger collection of information

28
New cards

abstraction

The separation of the high-level view of an entity from the low-level details of its implementation

29
New cards

abstraction

allows us to understand and intellectually manage any large, complex system

30
New cards

top-down design

A problem solving strategy in which you begin at the highest level view of the problem and, in steps, address the lower-level details of how to accomplish each operation

31
New cards

variable

A(n) ____ is a named storage location that can hold a value.

32
New cards

input

When an algorithm reaches a(n) ____ operation, it waits until someone or something provides it with a value.

33
New cards

iteration

Another term for looping is ____.

34
New cards

animation

The concept of algorithm ____, is one in which you can observe an algorithm being executed and watch as data values are dynamically transformed into final results.

35
New cards

primitive

____ operations are instructions that a computing agent understands and is capable of executing without further explanation or simplification.

36
New cards

pseudocode

____ is a set of English language constructs designed to resemble statements in a programming language but that does not actually run on a computer.

37
New cards

matching

The process of searching for a special pattern of symbols within a larger collection of information is called pattern ____.

38
New cards

sequential

With a random collection of names, the most effective method of searching for a specific name is with a ____ search.

39
New cards

loop

If we need to do the same computation 1 million times, the power of the computer to ____, that is, to repetitively execute a block of statements, becomes quite apparent.

40
New cards

natural

We speak and write ____ language in our everyday lives.

41
New cards

sequential

A ____ algorithm executes its instructions in a straight line from top to bottom and then stops.

42
New cards

if/then/else

The ____ statement allows you to select exactly one of two alternatives—this or that.

43
New cards

one

If the condition in a do/while statement evaluates to false, the loop body is executed ____ time(s).

44
New cards

library

A ____ is a collection of useful, prewritten algorithms.

45
New cards

continuation

The true/false condition is called the ____ condition.

46
New cards

index

The sequential search technique might use a variable called a(n) ____ to search a list.