Looking for FIT2004 Algorithms and data structures - S2 2026 test answers and solutions? Browse our comprehensive collection of verified answers for FIT2004 Algorithms and data structures - S2 2026 at learning.monash.edu.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Complexity and graph bounds
On a simple directed graph with |V| vertices and |E| edges, which of these statements is true?
Balanced search trees
Inserting into a 2-3 tree can overfill a node, which then splits. What happens to the median of its three keys?
Balanced search trees
Worst-case search time in a binary search tree of height h is Θ(h). For n keys, what is the worst-case height of an unbalanced tree, and what is it if the tree is kept AVL-balanced?
Shortest paths with negative weights
Assume that we have a graph with a negative cycle that is reachable from the source s. For which vertices is “the shortest distance from s” not a well-defined number?
Complexity and graph bounds
A graph with |V| vertices and |E| edges is stored once as an adjacency matrix and once as an adjacency list. How much space does each use?
Tries and suffix trees
For a string of length n, how many nodes does the suffix TRIE have in the worst case, and how many does the compressed suffix TREE have?
Tries and suffix trees
The suffix tree of a string of length n has Θ(n) nodes, and the alphabet has constant size. Why can an implementation still use Θ(n²) space, and how can this be avoided?
Tries and suffix trees
Assume we are given a string of length n that ends with a terminator that occurs nowhere else in it. How many leaves does its suffix tree have?
Network flow
Ford-Fulkerson has finished. A minimum cut splits the vertices into a source side and a target side. How are those two sides identified using the final residual network?
Network flow
You have found a flow of value 17 and, separately, a cut of capacity 17. What follows?