logo

Crowdly

Browser

Add to Chrome

COMP3121-COMP9101-Algorithm Design and Analysis - 2026 T1

Looking for COMP3121-COMP9101-Algorithm Design and Analysis - 2026 T1 test answers and solutions? Browse our comprehensive collection of verified answers for COMP3121-COMP9101-Algorithm Design and Analysis - 2026 T1 at moodle.telt.unsw.edu.au.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

We can finally complete the multiplication!

Recall that

The and terms don't contribute any extra multiplications, as the computer handles these using the bit shift operator before adding everything up. Therefore we needed just three multiplications, not four!

For the purpose of this exercise however, you should use the answers from previous parts to:

  • multiply the first coefficient by 256,
  • multiply the middle coefficient by 16,
  • take the last coefficient unchanged, and
  • add up the results.
View this question

How can we express in terms of , , and ?

View this question

Write an equation which expresses in terms of and .

View this question

The Strassen algorithm is a divide-and-conquer algorithm for multiplying two by matrices, where is a power of two. Similar to the Karatsuba trick, this gives a speedup on the brute force method for multiplying matrices, and its analysis follows similarly. Here, we use the Master Theorem to explicitly give a time bound on the Strassen algorithm.

Given two matrices and , we first split them each into 4 smaller square matrices, as follows.

and 

What are the dimensions of each of the matrices ?

View this question

We now look to compute our overhead function, so we can use the Master Theorem. How much work is done to divide the matrix, and how much work is done to recombine? (You may want to consider the operations used to do so).

Give your answer in the form "O(f)", where f is your function inputted with no spaces. Use the caret "^" for exponentiation, and n as the function variable. For example, if you thought the solution was , you would input O(n^42). 

View this question

Hence, find the time complexity of the Strassen algorithm. 

To input your answer, use the same form as the previous question.

For example, if I wanted to input the time complexity for the Karatsuba algorithm, I would enter O(n^{log3/log2}). Recall that .

View this question

Suppose that we did not prove that a valid flow corresponds to some valid solution. Select all the flaws that could follow.

View this question
Suppose that we did not prove that every feasible solution is a valid flow in our network. Select all the flaws that could follow.
View this question

Select the diagram that matches the recurrence. 

The red block refers to the current subproblem and the blue blocks refer to previously computed subproblems

0%
0%
0%
View this question

Select the diagram that matches the recurrence. 

The red block refers to the current subproblem and the blue blocks refer to previously computed subproblems

View this question

Want instant access to all verified answers on moodle.telt.unsw.edu.au?

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

Browser

Add to Chrome