logo

Crowdly

Browser

Add to Chrome

FIT2004 Algorithms and data structures - S2 2026

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!

When does inserting a key make a 2-3 tree one level taller?

❌
❌
❌
✅
View this question

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?

0%
0%
0%
0%
View this question

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?

0%
0%
0%
0%
View this question

Which statement about AVL trees and left-leaning red-black trees is correct?

0%
0%
0%
0%
View this question

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?

0%
0%
0%
❌
View this question

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?

❌
❌
✅
❌
View this question

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?

✅
❌
❌
❌
❌
View this question

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?

❌
❌
✅
❌
❌
View this question

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?

❌
❌
❌
❌
✅
View this question

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|²)?

❌
❌
❌
✅
❌
View this question

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome