Problems in this course
Matrix-vector multiplication
Input:
matrix
element vector
Output:
Matrix-matrix multiplication
Input:
matrix
matrix
Output:
matrix
Solving linear equation
Input:
matrix
vector
Output:
must be preprocessed, such that solutions can be easily found for any .
An such that
Stencil computation
Input:
matrix
Output:
Updated version of such that a convergence criteria is met
Matrix borders must be handled in a suitable way
iterate {
for all (i, j) {
A[i,j] <- (A[i-1,j] + A[i+1,j] + A[i,j-1] + A[i,j+1])/4
}
} until (convergence)
Merge and sort two arrays
Input:
Array of size
Array of size
Output:
Merged array of size
Get all prefix-sums
Input:
Array of size with elements of type
Associative operation
Output:
Example
Sort array
Sorting a sequence of objects such as (real numbers, integers, objects with an order relation) in an array.
Graph search
Input:
with a start
Output:
computed DFS or BFS traversal of from
Graph analysis:
- Given undirected , find all the connected components
- Given directed , find all strongly connected components
Graph analytics
Input:
Output:
computed property, ie. “betweenness centrality” for all