Шукаєте відповіді та рішення тестів для FIT2004 Algorithms and data structures - S2 2026? Перегляньте нашу велику колекцію перевірених відповідей для FIT2004 Algorithms and data structures - S2 2026 в learning.monash.edu.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
When does inserting a key make a 2-3 tree one level taller?
The black height of a left-leaning red-black tree is the number of black edges on the path from the root to any leaf.
What does it equal?
Heights are counted in edges, so a single node has height 0.
What is the smallest number of nodes an AVL tree of height 3 can have?
Which statement about AVL trees and left-leaning red-black trees is correct?
A left-leaning red-black tree has black height b: the number of black edges on the path from the root to any leaf (every such path has the same number, and a single-node tree has black height 0). Heights count edges.
What is the largest possible height of the tree?
One key is inserted into an AVL tree. Counting a double rotation as two rotations, at most how many rotations are needed to restore the balance?
Shortest paths with negative weights
Assume a graph where no negative cycle is reachable from the source. Bellman-Ford repeats its pass over all the edges |V| − 1 times. Why are that many passes sufficient?
Tries and suffix trees
Assume that we have a prefix trie that stores N words over a fixed alphabet, and that moving to a child node in the trie costs constant time. What is the WORST-CASE time to decide whether a pattern of length M is one of the stored words?
Network flow
Each arc of a network has been assigned a number. What must be true of those numbers for them to be a valid flow?
Complexity and graph bounds
An algorithm runs in Θ(|V|·|E|). What is the resulting running time on a SPARSE graph, where |E| = Θ(|V|), and on a DENSE one, where |E| = Θ(|V|²)?