Introduction to Algorithms
- 92Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
92 questions
- 1In its modern meaning, an algorithm is a procedure or set of rules for_____.
Hint
Think of the general purpose of a sequence of procedural instructions.
Answer
doing something
- 2An effective method uses a finite number of exact_____.
Hint
These are the individual directions that make up the method.
Answer
instructions
- 3For a problem in its class, an effective method always stops after a finite number of_____.
Hint
The method must terminate rather than continue indefinitely.
Answer
steps
- 4An effective method must produce the_____answer.
Hint
The method must solve the problem accurately, not merely terminate.
Answer
correct
- 5In principle, an effective method can be carried out by any human using no aids except_____.
Hint
The definition allows a person to record calculations but not rely on special machinery.
Answer
writing materials
- 6An effective method works when its instructions are followed_____.
Hint
The user must adhere closely to every instruction.
Answer
rigorously
- 7An algorithm’s instructions must be_____so that their meaning is clear.
Hint
The instructions should not permit conflicting interpretations.
Answer
unambiguous
- 8An algorithm is deterministic if repeated runs always produce the_____answer.
Hint
Determinism concerns whether repeated executions agree in their outcome.
Answer
same
- 9A non-deterministic route-finding algorithm may choose different routes because conditions and other_____vary.
Hint
The route can change when the information supplied to the algorithm changes.
Answer
inputs
- 10Early algorithms were designed to be carried out by_____rather than only by machines.
Hint
Before electronic computers, people could perform systematic calculations.
Answer
humans
- 11Al-Khwarizmi took Indian numbering and presented it under the name_____numbering.
Hint
The historical label reflects the culture through which the system was introduced to others.
Answer
Arabic
- 12The word “algorithm” developed after Al-Khwarizmi’s name was Latinized as_____.
Hint
This Latinized form is identified as the direct source of the modern word.
Answer
Algoritmi
- 13Bubble sort examines neighboring items pairwise and swaps them when they are in the_____order.
Hint
For an ascending sort, the larger item should not remain before the smaller one.
Answer
wrong
- 14When sorting into ascending order, a completed list places the small numbers on the_____and the large numbers on the right.
Hint
The sorted sequence runs from smaller values toward larger values.
Answer
left
- 15If a bubble-sort list is already in order and the algorithm stops after checking it once, its best-case step complexity is_____.
Hint
The algorithm needs only one pass through the items.
Answer
N
- 16For bubble sort, reverse-ordered data create the worst case because items must move through repeated_____.
Hint
The algorithm repeatedly traverses the list to move out-of-place values.
Answer
sweeps
- 17In bubble sort’s worst case, N sweeps each taking N steps give a complexity of_____.
Hint
Multiply the number of passes by the work in each pass.
Answer
N squared
- 18The number of computational steps as a function of input size is called_____complexity.
Hint
This complexity describes how the amount of work scales with the problem size.
Answer
time
- 19The amount of storage an algorithm requires is its_____complexity.
Hint
This measure concerns memory or storage rather than execution steps.
Answer
space
- 20When computer scientists discuss complexity without further qualification, they usually mean_____complexity.
Hint
The default measure is generally about computational work, not memory.
Answer
time
- 21The notation commonly used to describe how an algorithm scales is_____notation.
Hint
It expresses growth rates while abstracting away from the specific computer.
Answer
Big-O
- 22Merge sort works by splitting data into smaller parts, sorting them, and then_____the sublists.
Hint
The final stage combines the sorted pieces into a larger sorted list.
Answer
merging
- 23The sorting algorithm associated with Tim Peters and used in languages and systems such as Python is_____.
Hint
Its name combines the creator’s first name with the word “sort.”
Answer
Timsort
- 24A simulation that runs an algorithm many times on varied data to observe its behavior is called a_____simulation.
Hint
This method uses repeated trials to investigate outcomes.
Answer
Monte Carlo
- 25A method that can be performed by a deterministic Turing machine in polynomial time belongs to the class_____.
Hint
This class is treated as the collection of efficiently solvable decision problems.
Answer
P
- 26The Cobham–Edmonds thesis treats problems solvable in_____time as the “nice” problems.
Hint
The relevant growth category includes, for example, linear and quadratic scaling.
Answer
polynomial
- 27The Cobham–Edmonds view focuses on how a problem’s cost scales as its input gets_____.
Hint
It considers growth with problem size rather than the computer’s identity.
Answer
bigger
- 28Big-O-style scaling comparisons ignore the computer being used and the constant_____in the complexity.
Hint
A fixed multiplier is not the main concern in asymptotic growth comparisons.
Answer
factors
- 29An algorithm with polynomial complexity is often described as having_____complexity.
Hint
The growth rate is expressed using a power of the input size.
Answer
polynomial
- 30The lecture warns that many practical algorithms do not belong to the supposedly easy subset called_____.
Hint
This is the class associated with polynomial-time decision problems.
Answer
P
- 31A problem outside P is not automatically impossible to solve; it may instead be extremely_____as the input grows.
Hint
The concern is the amount of resources required, not necessarily whether any solution exists.
Answer
impractical
- 32An algorithm requiring exponential growth can eventually become less practical than a polynomial-time algorithm, even when constants initially favor it, because of its_____.
Hint
Consider how rapidly the resource requirement grows with input size.
Answer
scaling
- 33Going through a data set just once gives the especially desirable complexity_____.
Hint
The work increases proportionally to the number of items.
Answer
order N
- 34The lecture lists log N and N log N among the commonly desirable complexity rates before more costly_____growth.
Hint
These rates are discussed as part of a hierarchy of algorithmic growth.
Answer
polynomial
- 35The traveling salesperson problem asks for a shortest tour that visits every site once and returns to the_____.
Hint
The version discussed is a closed circuit rather than a one-way trip.
Answer
starting point
- 36A valid TSP tour must visit all the points without visiting any point_____.
Hint
Each site is visited once during the tour.
Answer
multiple times
- 37The traveling salesperson problem can be represented using a_____of locations and connecting distances.
Hint
Computer scientists commonly model sites as nodes and routes as connections.
Answer
graph
- 38A brute-force TSP search checks possible tours by considering each possible ordering of the_____.
Hint
In the lecture’s example, these are the locations Sir Christopher Wren might visit.
Answer
Churches
- 39With one location fixed as the starting point, the 13-location example has 12 factorial possible visit orders, or about_____million.
Hint
The lecture rounds the result of multiplying 12 by 11 and continuing downward.
Answer
500
- 40The number of orders for a brute-force tour grows factorially, so increasing the number of sites can make the search_____.
Hint
The growth quickly overwhelms realistic computing resources.
Answer
hideously impractical
- 41The nearest-neighbor algorithm repeatedly moves to the closest location that has not yet been_____.
Hint
At each step it selects a nearby unchosen site.
Answer
visited
- 42Because nearest neighbor can start at different locations, its tour length can vary with the_____location.
Hint
Changing the first site can change every later nearest choice.
Answer
starting
- 43A feasible TSP route gives an_____bound on the optimum because the optimum cannot be longer than that route.
Hint
This bound limits the best possible route from above.
Answer
upper
- 44A lower bound indicates a distance the optimal TSP tour cannot be_____.
Hint
It describes the best-case limit on how short a solution could be.
Answer
better than
- 45The Held–Karp algorithm provides an_____solution to TSP, though its complexity remains unsuitable for many large instances.
Hint
Unlike an approximation, it returns the optimum for the instances it can solve.
Answer
exact
- 46The Christofides algorithm guarantees a route no longer than one and a half times the_____.
Hint
Its guarantee compares the approximate route with the best possible tour.
Answer
optimum
- 47An approximate algorithm is particularly useful for a difficult problem when it runs efficiently and has a known bound on how far its answer is from the_____.
Hint
The guarantee measures the quality of the approximation against the best solution.
Answer
optimum
- 48The newer improvement to Christofides described in the lecture changes the approximation factor by an amount on the order of 10 to the power of minus_____.
Hint
The improvement is described as extraordinarily small.
Answer
36
- 49Repeating a computer operation again and again is called_____.
Hint
This control structure performs a step multiple times.
Answer
iteration
- 50In recursion, an algorithm essentially calls_____with different parameters.
Hint
The defining structure involves a procedure invoking another instance of that procedure.
Answer
itself
- 51A recursive definition of factorial expresses the factorial of N using N multiplied by the factorial of_____.
Hint
The definition reduces the input to a smaller case.
Answer
N minus one
- 52In modern computer science, recursion refers specifically to a structure in which a procedure calls_____.
Hint
Do not confuse this technical meaning with older, broader uses of the word.
Answer
itself
- 53A flowchart represents an algorithm using a standardized set of_____.
Hint
Different shapes indicate different kinds of steps or decisions.
Answer
symbols
- 54Frank and Lillian Gilbreth are associated with developing flowcharts to model human activity in time-and-motion_____.
Hint
Their work analyzed how tasks and processes were carried out.
Answer
studies
- 55Pseudocode describes an algorithm as a list of instructions, but unlike flowcharts it has no widely used international_____.
Hint
Different writers may express the same steps in different ways.
Answer
standard
- 56The Entscheidungsproblem asks whether a formula can be shown to follow from a specified set of_____.
Hint
These are the foundational statements from which a formal system derives results.
Answer
axioms
- 57The lecture states that the general Entscheidungsproblem has a negative answer: the derivability question cannot always be decided by a general_____.
Hint
The question concerns whether a systematic procedure can solve every instance.
Answer
method
- 58Alonzo Church’s lambda calculus is an algebraic way of representing_____and functions.
Hint
It provides a formal language for expressing function-related operations.
Answer
algebra
- 59A Turing machine is a formal model of computation that uses a tape and a set of_____.
Hint
The machine’s behavior is specified by a program that tells it what to do.
Answer
instructions
- 60In the simple Turing machine shown in the lecture, the tape stores the binary digits_____.
Hint
The machine’s tape uses two possible symbols.
Answer
one or zero
- 61The Church–Turing thesis states that every algorithm has an equivalent_____and vice versa.
Hint
The thesis links an informal procedure to a formal model of computation.
Answer
Turing machine
- 62In a Universal Turing machine, the program is also represented on the_____.
Hint
The machine’s input and instructions can be encoded in the same medium.
Answer
tape
- 63The halting problem asks whether a given program running on a Turing machine will eventually_____.
Hint
The question is whether execution terminates or continues forever.
Answer
stop
- 64A problem for which no algorithm can always provide an answer is fundamentally_____by algorithms.
Hint
The issue is not merely that solving it takes a long time.
Answer
unsolvable
- 65A decision problem is a problem whose answer is_____.
Hint
Its output belongs to one of two possible categories.
Answer
yes or no
- 66A numerical question can be converted into a decision problem by asking whether a stated equality is_____.
Hint
For example, ask whether a proposed equation holds.
Answer
true
- 67The P class contains decision problems solvable in polynomial time by a_____Turing machine.
Hint
The machine follows a fixed computation rather than making nondeterministic choices.
Answer
deterministic
- 68The class NP is defined in terms of solutions that can be_____in polynomial time.
Hint
Checking a proposed answer can be easier than finding one.
Answer
verified
- 69The Sudoku example illustrates that checking a completed grid can be easier than_____a valid completion.
Hint
Verification and construction need not have the same difficulty.
Answer
finding
- 70In a valid Sudoku grid, every row, column, and three-by-three subgrid contains the digits one through nine with no_____.
Hint
Each group must contain each digit exactly once.
Answer
repeats
- 71A minimal Sudoku grid is one in which removing any clue makes the solution no longer_____.
Hint
Each remaining clue is necessary to preserve a uniquely determined solution.
Answer
unambiguous
- 72Every problem in P is also in_____because a solution that can be found in polynomial time can also be checked in polynomial time.
Hint
This class includes problems whose proposed solutions can be verified efficiently.
Answer
NP
- 73A problem is NP-complete when it is in NP and other problems in NP can be transformed to it through suitable_____.
Hint
These transformations show that solving one problem can encode another.
Answer
reductions
- 74A problem that is at least as hard as NP-complete problems is described as_____.
Hint
This label includes problems that may be harder than the problems in NP.
Answer
NP-hard
- 75The central unresolved question asks whether_____.
Hint
It asks whether efficiently verifiable problems can also be efficiently solved.
Answer
P equals NP
- 76The Clay Mathematics Institute offers a million dollars for a proof resolving whether P equals_____.
Hint
The prize concerns the famous P-versus-? question.
Answer
NP
- 77The class co-NP concerns problems where it is easy to exclude_____answers.
Hint
This class is described in terms of efficiently checking that a proposed answer does not work.
Answer
wrong
- 78PSPACE contains problems solvable using a polynomial amount of memory, even if the computation takes_____time.
Hint
The definition restricts space rather than the duration of computation.
Answer
unlimited
- 79BPP is the class associated with problems solvable probabilistically in_____time.
Hint
The class combines randomized computation with an efficient growth bound.
Answer
polynomial
- 80BQP is presented as the quantum computing analogue of_____.
Hint
Both classes concern efficient computation, but one uses a quantum model.
Answer
BPP
- 81Problems requiring exponential time even to check are placed in the class_____.
Hint
The lecture’s clip uses this label for a class beyond NP, with chess move selection as an example.
Answer
X
- 82The lecture says that the general problem of finding primes was shown to belong to_____.
Hint
The result established that prime finding can be performed in polynomial time.
Answer
P
- 83Public-key cryptography can exploit an asymmetry in which a legitimate user verifies or decodes efficiently while an eavesdropper faces a harder_____.
Hint
The security idea relies on unequal computational difficulty for different tasks.
Answer
problem
- 84If P were equal to NP, some public-key cryptography systems could potentially_____.
Hint
The concern is that tasks designed to be hard might become efficiently solvable.
Answer
fail
- 85An algorithm can produce biased decisions when its input data encode unfair_____.
Hint
The system may reproduce correlations present in its training or scoring data.
Answer
patterns
- 86A fraud-detection system became biased when it used credit scoring correlated with where people lived, while residence was correlated with_____.
Hint
The unintended proxy linked geography to a protected characteristic.
Answer
ethnicity
- 87In the lecture’s account, bias in an algorithm may result from its design rather than the algorithm being inherently_____.
Hint
The system’s choices and data can produce discriminatory outcomes without the procedure having human intentions.
Answer
racist
- 88One modern goal in computer science is to develop algorithms and training data that are less_____.
Hint
The aim is to reduce unfair or discriminatory decisions.
Answer
biased
- 89When a device receives software updates or learns from experience, its behavior may drift away from its original_____.
Hint
The design requirements described when the system was purchased may no longer match what it does.
Answer
specification
- 90To trust a changing algorithmic system, it is important to consider whether its behavior can be verified and_____.
Hint
These practices assess whether the system produces the outputs it should.
Answer
tested
- 91In the A-level grading example, the algorithm’s predictions disadvantaged some students, but the lecture identified the deeper failure as a failure by_____.
Hint
The criticism focuses on decision-makers who did not anticipate the human consequences.
Answer
politicians
- 92The A-level grading controversy showed that an algorithm can fail socially when decision-makers do not anticipate its effects on fairness and_____.
Hint
Students were especially concerned with whether the process treated them fairly.
Answer
justice

Ask anything
We've read this whole study set, so questions about it get the best answers.