Analysis Exam Questions with
Answers
Abstract Data Type - Correct Answers: realization of a data type as a software component
Acyclic graph - Correct Answers: A graph that doesnt have a cycle
Adjacency List - Correct Answers: An implementation for a graph that uses an (array-based) list to
represent the vertices of the graph, and each vertex is in turn represented by a (linked) list of the
vertices that are neighbors.
Adjacency Matrix - Correct Answers: An implementation for a graph that uses a 2-dimensional array
where each row and each column corresponds to a vertex in the graph. A given row and column in the
matrix corresponds to an edge from the vertex corresponding to the row to the vertex corresponding to
the column.
Asymptotic Analysis - Correct Answers: A method for estimating the efficiency of an algorithm or
computer program by identifying its growth rate. Asymptotic analysis also gives a way to define the
inherent difficulty of a problem. We frequently use the term algorithm analysis to mean the same thing.
Average Case - Correct Answers: In algorithm analysis, the average of the costs for all problem instances
of a given input size n. If not all problem instances have equal probability of occurring, then average case
must be calculated using a weighted average.
Balanced Tree - Correct Answers: A tree where the subtrees meet some criteria for being balanced. Two
possibilities are that the tree is height balanced, or that the tree has a roughly equal number of nodes in
each subtree.
Best Case - Correct Answers: In algorithm analysis, the problem instance from among all problem
instances for a given input size n that has least cost. Note that the best case is not when n is small, since
we are referring to the best from a class of inputs (i.e, those inputs of size n).