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.

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

You find yourself curiously stranded on an n × n mysterious grid (shown below), unsure of how you got there, or how to leave. You denote the rows of the grid from bottom to top as 1, 2, ..., n, and similarly denote the columns from left to right as 1, 2, ..., n. Cell (i, j) refers to row i, column j.

You are currently standing at the bottom-left corner of the grid and wonder to yourself how many different ways there are to walk to the top-right corner of the grid. However, there are certain conditions on the grid's cells.

In the normal cells of the grid (cells with white background below), you feel fatigued and are only able to move to the cell to the immediate right (to the next column). In the special cells of the grid (cells with blue background below), you feel more energised and are able to move either to the cell that is immediately up (to the next row) or immediately right (to the next column).

A 6 by 6 grid, rows numbered 1 to 6 from the bottom and columns 1 to 6 from the left. The special (blue) cells are (1,1), (1,4), (2,2), (2,5), (2,6), (3,5), (3,6), (4,3), (4,6), (5,5) and (5,6); all other cells are normal. A figure stands in cell (1,1).

Which of the following options describe correct dynamic programming recurrences for those cells? Select all correct options.

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

Floyd-Warshall has finished on a directed graph with some negative edge weights.

Which feature of the final matrix says the graph has a negative cycle?

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

You are given a weakly connected directed weighted graph — connected when the edge directions are ignored — and asked whether it contains a negative cycle anywhere— not just one reachable from some particular vertex.

Which approach settles it in O(|V| · |E|) time?

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

Consider a directed, weighted graph G with |V| vertices and |E| edges. What is the worst-case time complexity of finding the edge of largest weight, if G is implemented using an adjacency matrix?

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

Consider a directed, weighted graph G with |V| vertices and |E| edges. What is the worst-case time complexity of running a Depth-First Search (DFS) on G, if G is implemented using an unsorted adjacency list?

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

Consider a directed, weighted graph G with |V| vertices and |E| edges. What is the worst-case time complexity of finding the vertex with the greatest number of edges, counting incoming and outgoing together, if G is implemented using an unsorted adjacency list?

0%
0%
0%
0%
0%
0%
0%
Переглянути це питання
Consider factorial(k)factorial(k): if k = 0k = 0 return 1, else return k \cdot factorial(k-1)k \cdot factorial(k-1). How many times is factorial invoked in total (counting the initial call and the base-case call) to compute factorial(4)factorial(4)?
Переглянути це питання
If |A| = 5|A| = 5 and |B| = 2|B| = 2, how many ordered pairs are in the Cartesian product A \times BA \times B?
Переглянути це питання
Which abstract data type (ADT) provides Last-In-First-Out (LIFO) access?
0%
0%
0%
0%
Переглянути це питання

Consider a directed, weighted graph G with |V| vertices and |E| edges. What is the worst-case time complexity of running a Breadth-First Search (BFS) on G, if G is implemented using an adjacency matrix?

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

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

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

Browser

Додати до Chrome