logo

Crowdly

Browser

Додати до Chrome

FIT1008-FIT2085 Fundamentals of algorithms - S1 2025

Шукаєте відповіді та рішення тестів для FIT1008-FIT2085 Fundamentals of algorithms - S1 2025? Перегляньте нашу велику колекцію перевірених відповідей для FIT1008-FIT2085 Fundamentals of algorithms - S1 2025 в learning.monash.edu.

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

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%
Переглянути це питання

Is Quicksort a stable sorting algorithm?

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

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%
Переглянути це питання

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%
Переглянути це питання
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%
Переглянути це питання

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

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

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%
Переглянути це питання

1. What is an abstract data type and how does it differ from data type? Give an example of an abstract data type and also of a data type in Python. [3]

2. Briefly describe Stack ADT giving details about [4]

  • Main property of a Stack ADT [2]
  • Key operations of the Stack ADT [2]

3. What is the best-case and worst-case time complexity of operation pop() for a Stack ADT, if implemented with an array? (no explanation, no marks) . [3]

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

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]

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

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]

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

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

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

Browser

Додати до Chrome