logo

Crowdly

Browser

Додати до Chrome

FIT2004 Algorithms and data structures - S2 2026

Шукаєте відповіді та рішення тестів для FIT2004 Algorithms and data structures - S2 2026? Перегляньте нашу велику колекцію перевірених відповідей для FIT2004 Algorithms and data structures - S2 2026 в learning.monash.edu.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

Complexity and graph bounds

A graph is stored as an adjacency list. A traversal visits each vertex once and, at each vertex, walks that vertex's list of neighbours. What is its total running time?

❌
✅
❌
❌
❌
Переглянути це питання

Network flow

Ford-Fulkerson stops when the residual network has no path from s to t. What does that prove?

❌
❌
❌
✅
❌
Переглянути це питання

Tries and suffix trees

Assume we have one fixed text T of length n and many patterns to look for, each of length m. Searching T for a single pattern with a linear-time matching algorithm costs Θ(n + m). How does building the suffix tree of T once improve on that?

❌
❌
❌
✅
❌
Переглянути це питання

Balanced search trees

What exactly does the AVL balance condition require?

❌
❌
❌
❌
✅
Переглянути це питання

Complexity and graph bounds

G is a simple, connected, undirected graph on at least two vertices. Which is always true?

❌
❌
❌
❌
✅
Переглянути це питання

Network flow

The residual network contains a backward arc (v, u) for every arc (u, v) that carries flow. What is it for?

❌
❌
❌
❌
✅
Переглянути це питання

Balanced search trees

How do an AVL tree and a red-black tree compare?

❌
❌
❌
✅
❌
Переглянути це питання

Balanced search trees

During a standard AVL insertion, what is the maximum number of separate rebalancing steps needed? Count a single or a double rotation at one unbalanced ancestor as one step.

✅
❌
❌
❌
❌
Переглянути це питання

Shortest paths with negative weights

You run |V| − 1 passes of Bellman-Ford, then one more pass, and during that extra pass some distance value decreases. What does that tell you?

❌
❌
❌
✅
❌
Переглянути це питання

Assigning jobs to machines

A workshop has five jobs to run today. Each job runs on exactly one machine, each machine can run only a limited number of jobs in a day, and each job needs a machine with the right tooling. The workshop wants to run as many jobs as possible.

machinemaximum number of jobs
m11
m21
m33
machinejobs it can take
m1j1
m2j2, j4, j5
m3j1, j3

Someone proposes to solve this with a flow network. It has a source s, one vertex per machine, one vertex per job and a sink t, with these edges:

edgeshow the proposal defines them
source edgesfrom the source to each machine, with capacity equal to that machine's own limit
middle edgesfrom each machine to each job it is allowed to take, with capacity 1
sink edgesfrom each job to the sink, with capacity equal to the number of machines that could take that job

They compute a maximum flow in it and report its value as the number of jobs that can be covered.

The proposal is wrong: on the instance above it reports a number that is too large. Answer all four parts.

  1. What is the value of a maximum flow in the proposed network on this instance? Describe a flow that achieves it.
  2. What is the true answer, i.e. the largest number of jobs that can be covered? Give an assignment that achieves it.
  3. Which requirement of the original problem does the proposed network fail to enforce? Explain exactly how the flow you gave in part 1 breaks that requirement.
  4. Repair the construction, and explain why your repair enforces the requirement.

Write in plain text. You may describe edges as s -> v1 and so on.

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на learning.monash.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome