logo

Crowdly

Browser

Add to Chrome

FIT1008-FIT2085 Fundamentals of algorithms - S1 2025

Looking for FIT1008-FIT2085 Fundamentals of algorithms - S1 2025 test answers and solutions? Browse our comprehensive collection of verified answers for FIT1008-FIT2085 Fundamentals of algorithms - S1 2025 at learning.monash.edu.

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

We are trying to optimise the pivot selection of the Quicksort algorithm. For our pivot choice, we are using an algorithm to find the median of an unsorted list. The algorithm we opt to use for this takes O(n) time, where n is the size of the list we are partitioning. This would make the overall worst-case time complexity of Quicksort as O(nlogn). Why don't we use this approach in general?
0%
100%
0%
0%
View this question

Is Quicksort a stable sorting algorithm?

0%
100%
View this question

Assume we have the following list: [10, 9, 3, 4, 2, 5and we select 5 to be the pivot. What would the list be after one iteration of quicksort? 

You should use the partition algorithm discussed in the pre-reading.

0%
0%
0%
0%
View this question

I am trying to decide whether I should use Quicksort or Mergesort to sort a list. What factors would affect my choice?

0%
0%
0%
0%
View this question
We are trying to optimise the pivot selection of the Quicksort algorithm. For our pivot choice, we are using an algorithm to find the median of an unsorted list. The algorithm for opt to use for this takes O(n) time, where n is the size of the list we are partitioning. What would the overall worst-case time complexity of this implementation of Quicksort be?
0%
50%
50%
0%
View this question

Quicksort is not a stable sorting algorithm. Can we make Quicksort stable?

0%
0%
View this question

Assume we have the following list: [10, 9, 3, 4, 2, 5] and we select 4 to be the pivot. What would the list be after one iteration of quicksort? 

You should use the partition algorithm discussed in the pre-reading.

0%
20%
0%
View this question

1. Briefly describe List ADT giving details about [4]

  • Main property of a List ADT; [2]
  • Key operations of the List ADT. [2]

2. What is the best-case and worst-case complexity of operation add() for a Sorted List ADT, if implemented with an array? Assume that item search is done with binary search. Explain the reason for the best and worst case. No explanation no marks. [3]

3. State (in total) three advantages and/or disadvantages of Linked Nodes data structures? [3]

View this question

1. What does it mathematically mean that f(n) = O(g(n)), in your own words? [3]

2. Assuming that f(n) = O(n^2) and g(n) = O(n^2 logn), what should be f(n) + g(n)? Why? Simplify the resulting expression. [3]

3. What is the worst-case time complexity of the function "func2"? Explain. When providing your analysis, don't forget to specify what is the input size. [4]

Image failed to load

View this question

1. Briefly describe a bit-vector, giving details about

  • How an element of a set is represented by means of a bit-vector
  • How bit-vector based sets operate
Give an example of a set and its representation as a bit-vector. [3]

2. What is the best-case and worst-case time complexity of the remove() and intersection() operations for a Set ADT, if implemented with an array? Explain (no explanation, no marks). [4]

3. What are the main advantages and disadvantages of an array-based implementation of the Set ADT compared to a bitvector-based implementation? State the advantages and disadvantages as separate sections for each. [3]

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