Graphs, Matrices, and Computation
- 45Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
In the vertex elimination game, what happens when a vertex is selected?
In the vertex elimination game, what happens when a vertex is selected?
45 questions
- 1
In the vertex elimination game, what happens when a vertex is selected?
- A
It is marked, and every unmarked neighbor is connected to every marked neighbor
- B
It is removed, and its unmarked neighbors are connected only if they have no other neighbors
- C
It is marked, and edges are added between all pairs of its unmarked neighbors that are not already adjacent
- D
It is removed, and all of its marked neighbors are connected to one another
Correct answer
CIt is marked, and edges are added between all pairs of its unmarked neighbors that are not already adjacent
Explanation
The selected vertex is marked, and its unmarked neighbors are made pairwise adjacent by adding any missing edges.
- A
- 2
What is the goal when choosing the order of vertices in the elimination game?
- A
To finish with as few edges as possible
- B
To make every vertex have the same number of neighbors
- C
To maximize the number of connected components
- D
To finish with as many marked vertices as possible
Correct answer
ATo finish with as few edges as possible
Explanation
The score is determined by the number of edges in the final graph, so the goal is to minimize that number.
- A
- 3
Why does eliminating a vertex sometimes add no edges?
- A
Because eliminating a vertex always deletes its incident edges
- B
Because a marked vertex cannot have any unmarked neighbors
- C
Because edges are added only when a vertex has exactly one neighbor
- D
Because its unmarked neighbors are already pairwise adjacent
Correct answer
DBecause its unmarked neighbors are already pairwise adjacent
Explanation
The rule adds only missing edges between unmarked neighbors. If those neighbors are already adjacent, no edge needs to be added.
- A
- 4
Which property is guaranteed for the graph produced after all vertices have been eliminated?
- A
It is complete
- B
It is a tree
- C
It is bipartite
- D
It is chordal
Correct answer
DIt is chordal
Explanation
The final graph from vertex elimination is always chordal, regardless of the elimination order.
- A
- 5
What does it mean for a graph to be chordal?
- A
Every pair of vertices is connected by exactly one path
- B
Every cycle with at least four vertices has an edge connecting two nonconsecutive vertices of the cycle
- C
Every vertex has the same number of incident edges
- D
Every cycle has an even number of vertices
Correct answer
BEvery cycle with at least four vertices has an edge connecting two nonconsecutive vertices of the cycle
Explanation
A chord is an edge joining nonconsecutive vertices of a cycle. A graph is chordal when every cycle of at least four vertices has such an edge.
- A
- 6
For which starting graphs can vertex elimination be performed without adding any edges, using a suitable order?
- A
Exactly the connected graphs
- B
Exactly the chordal graphs
- C
Exactly the graphs containing no cycles
- D
Exactly the bipartite graphs
Correct answer
BExactly the chordal graphs
Explanation
The elimination game can be played without adding edges if and only if the initial graph is chordal.
- A
- 7
Why can’t a four-cycle be eliminated without adding an edge?
- A
A four-cycle has no vertices that can be marked first
- B
The game requires every cycle to be made complete before elimination starts
- C
Whichever vertex is selected first, its two unmarked neighbors are not adjacent
- D
A four-cycle is already chordal, but the rules forbid selecting its vertices
Correct answer
CWhichever vertex is selected first, its two unmarked neighbors are not adjacent
Explanation
Selecting any vertex of a four-cycle first leaves two unmarked neighbors that are not connected, so the rules require adding an edge between them.
- A
- 8
What is the computational difficulty of finding the best elimination order on a general graph?
- A
Finding an optimal order is NP-hard
- B
Finding an optimal order requires only sorting the vertex degrees
- C
Finding an optimal order is always possible in linear time
- D
Finding an optimal order is impossible because the final graph is not determined
Correct answer
AFinding an optimal order is NP-hard
Explanation
Determining the best play—that is, an order that minimizes added edges—is NP-hard for arbitrary graphs.
- A
- 9
How is treewidth related to the elimination game?
- A
It is obtained by minimizing the size of the largest complete subgraph formed during elimination
- B
It is the total number of edges added over every possible elimination order
- C
It is the number of connected components in the final chordal graph
- D
It is the average number of marked neighbors at each elimination step
Correct answer
AIt is obtained by minimizing the size of the largest complete subgraph formed during elimination
Explanation
Changing the score to minimize the size of the largest complete subgraph formed in the process leads to the notion of treewidth.
- A
- 10
How does an undirected graph correspond to a matrix in the sparse factorization setting?
- A
The graph corresponds to the nonzero structure of a symmetric matrix
- B
The graph corresponds to the eigenvalues of a nonsymmetric matrix
- C
The graph corresponds to the inverse of a dense matrix
- D
The graph corresponds to the diagonal values of a triangular matrix
Correct answer
AThe graph corresponds to the nonzero structure of a symmetric matrix
Explanation
An undirected graph can be represented by a symmetric matrix whose nonzero pattern records the graph’s edges.
- A
- 11
What matrix operation represents choosing an ordering of graph vertices?
- A
Scaling every row by its vertex degree
- B
Taking the matrix’s transpose without changing its rows
- C
Applying the corresponding symmetric permutation to the matrix
- D
Replacing the matrix with its inverse
Correct answer
CApplying the corresponding symmetric permutation to the matrix
Explanation
Reordering graph vertices corresponds to applying the same permutation to the rows and columns of the symmetric matrix.
- A
- 12
What does the chordal graph created by vertex elimination represent in sparse Cholesky factorization?
- A
The nonzero pattern of the matrix inverse in every case
- B
The set of entries that must be removed from the matrix
- C
The nonzero pattern of the Cholesky factor
- D
The eigenvalue distribution of the original matrix
Correct answer
CThe nonzero pattern of the Cholesky factor
Explanation
The fill edges created during elimination correspond to the nonzero structure of the Cholesky factor.
- A
- 13
What does the elimination-degree vector record for each vertex?
- A
The number of lower-numbered neighbors it has before elimination begins
- B
The number of edges removed from the graph at that step
- C
The number of higher-numbered neighbors it has when it is eliminated
- D
The number of connected components containing that vertex
Correct answer
CThe number of higher-numbered neighbors it has when it is eliminated
Explanation
Each entry counts the vertex’s higher-numbered neighbors, which are precisely its unmarked neighbors at the time of elimination.
- A
- 14
What does the sum of the entries in the elimination-degree vector measure?
- A
The number of cycles and the number of zero entries on the factor diagonal
- B
The number of vertices and the number of Cholesky pivots
- C
The number of edges in the eliminated graph and the number of nonzeros in the Cholesky factor
- D
The number of connected components and the number of matrix rows
Correct answer
CThe number of edges in the eliminated graph and the number of nonzeros in the Cholesky factor
Explanation
The sum counts the edges associated with the elimination process and gives the number of nonzeros in the Cholesky factor, which determines its storage requirement.
- A
- 15
If the elimination-degree vector has entries di, what quantity describes the flop count for the factorization, according to the content?
- A
The sum of the squared entries, $�24�
- B
The largest entry, $�24�
- C
The number of zero entries, $�24�
- D
The sum of the entries, $�24�
Correct answer
AThe sum of the squared entries, $�24�
Explanation
The work in floating-point operations is described by the second moment of the vector: the sum of the squared entries, $�24�.
- A
- 16
According to the content, how does the fast-memory requirement of the multifrontal algorithm scale with the elimination-degree vector?
- A
As the sum of all its entries
- B
As the number of vertices times its smallest entry
- C
As the square of its largest entry
- D
As the square root of its average entry
Correct answer
CAs the square of its largest entry
Explanation
The required fast memory scales as the square of the vector’s largest entry; this largest-entry measure is also identified with treewidth in this context.
- A
- 17
Which pairing correctly matches elimination-degree summaries with the resources they describe?
- A
Sum: arithmetic work; sum of squares: fast memory; largest entry squared: storage
- B
Sum: fast memory; sum of squares: storage; largest entry squared: arithmetic work
- C
Sum: treewidth; sum of squares: storage; largest entry squared: number of vertices
- D
Sum: storage; sum of squares: arithmetic work; largest entry squared: fast memory
Correct answer
DSum: storage; sum of squares: arithmetic work; largest entry squared: fast memory
Explanation
The sum measures Cholesky storage, the sum of squares measures floating-point work, and the square of the maximum entry estimates fast-memory needs.
- A
- 18
What historical contribution is associated with Harry Markowitz in the discussion of sparse matrices?
- A
He is credited with first using the term “sparse matrix”
- B
He introduced the GraphBLAS C API
- C
He developed the Julia programming language
- D
He proved that every elimination graph is chordal
Correct answer
AHe is credited with first using the term “sparse matrix”
Explanation
Markowitz is credited with being the first to call a sparse matrix a “sparse matrix,” in work connected to portfolio theory.
- A
- 19
How did the relationship between graph algorithms and sparse matrix computation change over time?
- A
Sparse matrices replaced graphs entirely, leaving graph algorithms with no computational role
- B
Large-scale graph computation preceded sparse matrix methods and did not benefit from them
- C
Graph algorithms and sparse matrix computation developed independently and never exchanged techniques
- D
Graph methods first supported sparse matrix computation, and later sparse-matrix techniques helped compute on large graphs
Correct answer
DGraph methods first supported sparse matrix computation, and later sparse-matrix techniques helped compute on large graphs
Explanation
Graph techniques were used for sparse matrix computation for decades; later, graph applications increasingly benefited from the parallel-computing expertise developed by sparse-matrix researchers.
- A
- 20
What is the central idea of GraphBLAS?
- A
Restrict graph processing to real-valued matrix arithmetic
- B
Convert every graph into a dense matrix before computation
- C
Replace graph algorithms with numerical optimization
- D
Express graph computations using linear algebra operations
Correct answer
DExpress graph computations using linear algebra operations
Explanation
GraphBLAS uses linear-algebra-style operations to express and carry out graph computations.
- A
- 21
Why can GraphBLAS use operations other than ordinary real-number addition and multiplication?
- A
Ordinary arithmetic cannot represent sparse matrices
- B
Alternative operations are used only to make matrices dense
- C
Graph algorithms can be expressed over different semirings suited to their tasks
- D
GraphBLAS requires every matrix entry to be a string rather than a number
Correct answer
CGraph algorithms can be expressed over different semirings suited to their tasks
Explanation
GraphBLAS can use semirings other than the usual real or complex fields, choosing operations that fit the graph problem.
- A
- 22
Which semiring approach is identified with finding shortest paths?
- A
Min-plus
- B
Max-times
- C
Real-field addition only
- D
Boolean
Correct answer
AMin-plus
Explanation
The min-plus semiring is given as an approach for shortest-path computations.
- A
- 23
Which algebraic approach is identified with graph connectivity?
- A
Min-plus arithmetic
- B
Complex-field arithmetic
- C
Ordinary matrix subtraction
- D
Boolean algebra
Correct answer
DBoolean algebra
Explanation
Boolean algebra is identified as a way to compute connectivity.
- A
- 24
In the GraphBLAS interpretation described, what roles do semiring addition and multiplication typically play?
- A
Addition processes information crossing edges, while multiplication deletes information at vertices
- B
Addition creates edges, while multiplication guarantees that the graph is connected
- C
Addition chooses vertex labels, while multiplication determines matrix dimensions
- D
Addition aggregates information at vertices, while multiplication processes information crossing edges
Correct answer
DAddition aggregates information at vertices, while multiplication processes information crossing edges
Explanation
The operations are interpreted according to the algorithm: addition often aggregates data at vertices, and multiplication often processes data as it crosses edges.
- A
- 25
What do values in a GraphBLAS computation commonly represent?
- A
Only the positions of the matrix diagonal
- B
The number of processors in the system
- C
Attributes associated with vertices and edges
- D
The programming language’s memory addresses
Correct answer
CAttributes associated with vertices and edges
Explanation
The values in the semiring can represent attributes that live on graph vertices and edges.
- A
- 26
What challenge arises when expressing generic programming patterns in the GraphBLAS C API?
- A
The API can operate only on graphs with one vertex
- B
C cannot represent sparse matrices at all
- C
Generic operations automatically make every computation sequential
- D
The resulting C interface can become complicated and messy
Correct answer
DThe resulting C interface can become complicated and messy
Explanation
The C API is precise and capable, but expressing generic-programming ideas in C can make the interface complicated.
- A
- 27
Which statement about SuiteSparse:GraphBLAS is supported by the content?
- A
It is a programming language that replaced all C libraries
- B
It is a graph format that cannot be used by other software
- C
It is a major implementation that can handle extremely large hyper-sparse matrices
- D
It stores only dense matrices with dimensions below one thousand
Correct answer
CIt is a major implementation that can handle extremely large hyper-sparse matrices
Explanation
SuiteSparse:GraphBLAS is described as a notable implementation, capable of handling hyper-sparse matrices with dimensions as large as 260 by 260.
- A
- 28
What relationship between SuiteSparse:GraphBLAS and RedisGraph is mentioned?
- A
RedisGraph is the C API that SuiteSparse:GraphBLAS implements
- B
RedisGraph converts SuiteSparse:GraphBLAS matrices into dense arrays
- C
SuiteSparse:GraphBLAS operates underneath RedisGraph
- D
SuiteSparse:GraphBLAS is a replacement name for RedisGraph
Correct answer
CSuiteSparse:GraphBLAS operates underneath RedisGraph
Explanation
The implementation is described as living underneath RedisGraph, among other software.
- A
- 29
Which set best describes the different stages of work a programming language may need to support for graph and matrix computing?
- A
Developing algorithms, experimenting at small or medium scale, and implementing selected algorithms at very large scale
- B
Building hardware, training users, and maintaining databases
- C
Drawing graphs, writing documentation, and converting programs into machine code
- D
Defining mathematical theorems, grading coursework, and managing computer networks
Correct answer
ADeveloping algorithms, experimenting at small or medium scale, and implementing selected algorithms at very large scale
Explanation
The discussion distinguishes algorithm development, exploratory experimentation at varying scales, and production implementation at the largest scale.
- A
- 30
Why was MATLAB useful for exploratory matrix computing?
- A
It offered interactive use, quick turnaround, and expressive operations within its domain
- B
It required every algorithm to be rewritten in assembly language
- C
It eliminated the need to represent matrices explicitly
- D
It was designed only for running programs on the world’s largest machines
Correct answer
AIt offered interactive use, quick turnaround, and expressive operations within its domain
Explanation
MATLAB supported interactive, expressive exploration with fast turnaround, especially for matrices at small scales.
- A
- 31
What change made MATLAB more useful for exploring graph algorithms?
- A
Sparse matrices became available, allowing graph algorithms to be expressed through linear algebra
- B
MATLAB stopped supporting matrix operations and added graph drawing instead
- C
Its sparse matrices forced all graph algorithms to run on a supercomputer
- D
It replaced vertex data with a fixed set of real-valued labels
Correct answer
ASparse matrices became available, allowing graph algorithms to be expressed through linear algebra
Explanation
Once MATLAB supported sparse matrices, graph algorithms could be explored by expressing them in the language of linear algebra.
- A
- 32
How does the discussion characterize Julia’s place in the development of exploratory computing?
- A
It is limited to implementing algorithms in Fortran 77
- B
It is presented as a replacement for all parallel programming languages
- C
It prevents users from experimenting with matrices at different scales
- D
It continues a progression toward handling tasks that earlier approaches had struggled to support
Correct answer
DIt continues a progression toward handling tasks that earlier approaches had struggled to support
Explanation
Julia is presented as a later step in a progression of tools for exploring graphs, matrices, and other problems across scales.
- A
- 33
Why are scheduling and locality important in very large-scale parallel computing?
- A
They ensure that every operation uses the same amount of memory
- B
They help manage parallel work and reduce communication
- C
They eliminate the need to divide work among processors
- D
They make all data globally available without cost
Correct answer
BThey help manage parallel work and reduce communication
Explanation
High performance and scale introduce scheduling and locality concerns, particularly the need to reduce communication.
- A
- 34
How did MATLAB Star-P address some parallel-computing concerns?
- A
It required programmers to manage every network message directly
- B
It raised the level of its primitives so implementation details could be hidden beneath them
- C
It made every data structure local to one processor
- D
It replaced parallel operations with sequential loops
Correct answer
BIt raised the level of its primitives so implementation details could be hidden beneath them
Explanation
The approach raised the abstraction level of the available primitives, allowing some parallel-computing details to be hidden underneath.
- A
- 35
What does PGAS stand for, and what programming model does it suggest?
- A
Programmed Global Algorithm Sequence; a model that hides all data movement
- B
Parallel Graph Arithmetic System; a model that stores all graph data on one processor
- C
Partitioned Graph Access Syntax; a model that eliminates remote memory
- D
Partitioned Global Address Space; a shared-memory illusion in which programmers can identify what is local
Correct answer
DPartitioned Global Address Space; a shared-memory illusion in which programmers can identify what is local
Explanation
PGAS means Partitioned Global Address Space. It gives the illusion of shared memory while making the distinction between local and remote data visible.
- A
- 36
In a PGAS program, what is the recommended approach to data access for high performance?
- A
Keep as much work and data local as possible, while tolerating occasional remote access
- B
Access remote data for every operation to balance processor loads
- C
Avoid local data because it cannot be shared among processors
- D
Move all data to one processor before beginning computation
Correct answer
AKeep as much work and data local as possible, while tolerating occasional remote access
Explanation
PGAS programming encourages keeping as much as possible local; occasional remote accesses can be acceptable if they are not too frequent.
- A
- 37
Why did fine-grained global communication become less suitable for newer parallel computers?
- A
Modern machines cannot communicate between processors
- B
Newer machines have no local memory
- C
The machines no longer handled frequent small remote interactions as effectively, making bundled messages preferable
- D
Fine-grained communication requires every processor to use a different programming language
Correct answer
CThe machines no longer handled frequent small remote interactions as effectively, making bundled messages preferable
Explanation
The discussion contrasts older machines that handled fine-grained communication well with newer systems where programmers need to bundle messages and exchange them in batches.
- A
- 38
What is the main purpose of an aggregation library such as xStack or Conveyors?
- A
To collect communication requests and send them in aggregated batches
- B
To replace graph data structures with dense matrices
- C
To convert parallel programs into sequential ones
- D
To prevent programs from accessing remote data
Correct answer
ATo collect communication requests and send them in aggregated batches
Explanation
The aggregation approach queues work and bundles communication, helping programs avoid relying on many fine-grained remote interactions.
- A
- 39
What kind of operation is illustrated by the distributed-array example in the content?
- A
A reduction that sums every element into one local value
- B
A graph traversal that visits vertices in alphabetical order
- C
A matrix inversion that replaces every entry with its reciprocal
- D
An indexed gather that uses local indices to select entries from a distributed table
Correct answer
DAn indexed gather that uses local indices to select entries from a distributed table
Explanation
The example is an indexed gather: a process uses its local indices to select items from a distributed array and place them in a destination.
- A
- 40
What performance characteristic was attributed to the xStack code for the applications discussed?
- A
It performed well only when every graph fit on one processor
- B
It minimized bandwidth by avoiding all communication
- C
It was slower than direct fine-grained communication in every case
- D
It was highly efficient in bandwidth use, including use of bisection and injection bandwidth
Correct answer
DIt was highly efficient in bandwidth use, including use of bisection and injection bandwidth
Explanation
The code was described as highly efficient for the target applications and as using much of the machine’s available bisection and injection bandwidth.
- A
- 41
What trade-off was observed in the xStack implementation?
- A
It improved readability by sacrificing all communication efficiency
- B
It made programs shorter but prevented them from handling graphs
- C
It could be very fast while still being difficult to read and unattractive as code
- D
It was easy to read but could not use parallel hardware
Correct answer
CIt could be very fast while still being difficult to read and unattractive as code
Explanation
The speaker contrasted the implementation’s strong performance with code that looked unattractive and was considered less readable.
- A
- 42
What is Bail intended to provide?
- A
A new graph semiring for computing shortest paths
- B
A programming language restricted to sequential matrix computation
- C
A replacement for the Cholesky factorization algorithm
- D
A collection of mini-applications for comparing approaches to large-scale distributed parallel programming
Correct answer
DA collection of mini-applications for comparing approaches to large-scale distributed parallel programming
Explanation
Bail combines aggregation-related tools with nine mini-applications and is intended to support discussion and comparison of approaches to distributed parallel programming.
- A
- 43
Why does Bail include implementations in different programming languages and styles?
- A
To demonstrate that aggregation can work only in C
- B
To require users to rewrite every application in every language
- C
To encourage comparison and discussion of how productive large-scale parallel programs should be written
- D
To prove that all languages produce identical code and performance
Correct answer
CTo encourage comparison and discussion of how productive large-scale parallel programs should be written
Explanation
The implementations in different languages and styles are meant to serve as a vehicle for discussing productive ways to program large-scale distributed applications.
- A
- 44
What future role does the speaker expect aggregation to play in large parallel programs?
- A
Aggregation will eliminate the need for algorithms and data structures
- B
Aggregation will be useful only for small, single-processor programs
- C
Aggregation will make communication unnecessary on distributed machines
- D
Aggregation will be a necessary part of how programmers think about large-scale parallelism
Correct answer
DAggregation will be a necessary part of how programmers think about large-scale parallelism
Explanation
The speaker argues that aggregation under the covers will be an important, likely necessary, way to think about future large-scale parallel programs.
- A
- 45
What programming-library gap does the speaker identify?
- A
A distributed-memory aggregation library for Julia had not yet been written
- B
No programming language supported distributed-memory computation
- C
Julia lacked support for defining any matrix operations
- D
C lacked libraries for sparse matrix factorization
Correct answer
AA distributed-memory aggregation library for Julia had not yet been written
Explanation
The speaker notes that, to their knowledge, nobody had written a distributed-memory aggregation library for Julia and invites someone to do so.
- A

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