ADA Assignment1

ADA Assignment1

University

10 Qs

quiz-placeholder

Similar activities

Big O Notation

Big O Notation

University

7 Qs

ed Hat System Administration I - Test 2B

ed Hat System Administration I - Test 2B

University

9 Qs

ANALYSIS OF ALGORITHMS

ANALYSIS OF ALGORITHMS

University

15 Qs

WizQuiz

WizQuiz

University

15 Qs

Algorithms Data

Algorithms Data

University

15 Qs

HEAP TREE

HEAP TREE

University

11 Qs

Revisando a Aula 2 Estrutura de Dados

Revisando a Aula 2 Estrutura de Dados

University

7 Qs

BCSC0006 Trees

BCSC0006 Trees

University

10 Qs

ADA Assignment1

ADA Assignment1

Assessment

Quiz

Computers

University

Medium

Created by

shama s

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 1 Quick sort is an example of a sorting algorithm based on which strategy?

a. Dynamic programming

b. Greedy approach

c. Divide and conquer

d. Backtracking

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 2 What is the average time complexity of the bubble sort algorithm?

a. O(n^2)

b. O(n)

c. O(log n)

d. O(n log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 3 What is the time complexity of merge sort in all cases?

a. O(n)

b. O(n log n)

c. O(n^2)

d. O(log n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4 Strassen`s matrix multiplication is an algorithm that multiplies two matrices using which approach?

a. Brute force

b. Greedy approach

c. Dynamic programming

d. Divide and conquer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5 What is the objective of the 0/1 Knapsack Problem?

a. To maximize the total weight of the knapsack.

b. To maximize the total value of the knapsack.

c. To minimize the total weight of the knapsack.

d. minimize the total value of the knapsack.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6 Which approach is commonly used to solve the 0/1 Knapsack Problem?

a. Greedy algorithm

b. Dynamic programming

c. Depth-first search

d. Breadth-first search

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7 What is the time complexity of the dynamic programming solution for the 0/1 Knapsack Problem?

a. O(n)

b. O(n + W)

c. O(nW)

d. O(W^2)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?