Quiz 1 Flashcards

1
Q

In theoretical computer science, researchers study the logical and ___ of problems and their solutions.

A

Mathematical Properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Designing programming languages and translating algorithms into these languages is known as ____ realization.

A

linguistic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An algorithm is essentially useless when __________________________________.

A

It takes too long to compute/execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is wrong with the following:

  1. Set x to be 1
  2. Increment x
  3. Print x
  4. If x>0, repeat from 2
A

X is never less than 0. The program doesnt halt to a stop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The history of mathematics begins _____ years ago

A

3000 or more years ago

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In Babbage’s analytical engine, a mill was used to __________.

A

Perform arithmetic operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

______ is an example of a natural language

A

English

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

___________ operations provide the computing agent with data values from the outside world that it may then use in later instructions.

A

Input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A purely _______ algorithm is sometimes termed a straight-line algorithm.

A

Sequential

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The _________ loop is an example of a posttest loop.

A

do/while

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The technique of looking at all the items in a list, starting at the beginning of the list, one at a time, until we either find what we are looking for or come to the end of the list is called ___________ search.

A

Sequential

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

Data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

_________ is the algorithmic equivalence of style.

A

Elegance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The study of the efficiency of algorithms is called the __________ of algorithms.

A

Analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In the sequential search algorithm, the minimum amount of work is done if the value being searched for is the __________ value in the list.

A

First

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Placing a list of items into alphabetical or numerical order is called ___________.

A

Sorting

17
Q

The worst case in binary search occurs _______.

A

when the object to be searched for is not in the list

18
Q

The ____ sort algorithm performs the task of sorting a list by growing a sorted subsection of the list from the back to the front.

A

a. selection

19
Q

An _______ algorithm is called an exponential algorithm.

A

O(2^n)

20
Q

Problems for which no known polynomial solution algorithm exists are sometimes approached via _________ algorithms.

A

Approximation