ALDA SoSe 24 1st Exam
what was asked on the exam:
Adjacency Matrix \(A\) of a graph \(G\):
- write the pseudocode for an optimal algorithm that determines the total number of nodes in the graph with equal in- and out-degrees.
- Analyze the complexity of your algorithm and prove optimality
Heaps
Hashing
- Open hashing. Insert a sequence of elements
- Open hashing. Delete a sequence of elements
Standard questions for comparing functions asymptotically, determining growth rate of reccurence relations with and without applications of the master theorem, analyzing complexity of short pseudocode algorithms like
read(t) k := 1 i : = 1 while (k <= t) : i := i + 1 k := k + i
Short proofs of statements regarding (a, b) trees and graphs
Simple proof by induction problem
Dijkstra shortest path algorithm
wasn’t asked:
- sorting
- problems specifically for divide & conquer / recursion
- problems specifically for dynamic programming
- linear programming
- approximation / heuristic algorithms
- algorithms on strings