Search Header Logo

Analysis of Algorithm Review

Authored by วัชรศักดิ์ ศิริเสรีวรรณ

Computers

University

Used 3+ times

Analysis of Algorithm Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which statement is true about differences between Best and Worst case analysis

Best case represents the lower bound of time/resource,
Worst case represents the upper bound of time/resource.

Best case measures the maximum resources required,

Worst case measures the minimum.

Best case happens when the input is well-ordered
Worst case happens when the input is reversely-ordered

Best case is for small datasets, Worst case is for large datasets.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is true about Average-Case analysis

The arithmetic mean of Best case and Worst case time

The expected time/resource used by algorithm.

The time used by algorithm when the input is randomly ordered.

The time used by algorithm when the input size is a half of maximum limit.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is asymptotic notation

The notation used to describe the growth rate of algorithms

The greek alphabet used to compare the function value

The metric to measure the time used to run the program

A syntax used in high-level programming languages to declare the maximum memory limit of a variable

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one is NOT methods used to solve recurrence equations.

Replace and Substitution

Master Theorem

State Space Tree

Linear recurrence relation theorem

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are the three standard steps involved in the Divide and Conquer algorithmic strategy?

Divide and Conquer the input by splitting it into halves.

Iterate through the list to find the largest value.

Return the result.

Divide the total execution time.

Conquer the subproblems by solving them one by one.

Delete the unnecessary data.

Divide the problem into smaller parts.

Conquer the hardware by optimizing memory.

Merge the final code.

Divide the problem into subproblems.

Conquer them by solving recursively.

Combine the solutions to the subproblems.

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which properties of the problem required for Dynamic Programming.

Optimal Substructure

Overlapping subproblem

Non-overlapping subproblem

Greedy choice

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How does Dynamic Programming optimize the process of solving complex recursive problems.

It uses a Dynamic flow that changes the algorithm's logic to adapt to new inputs.

Simplifies the problem by using a recursive strategy that solves every sub-instance when it is encountered.

Storing the results of smaller subproblems in a table or array to avoid re-calculating

Convert the recursive execution into filling the value in the table using loops

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?