time and space trade off

time and space trade off

University

6 Qs

quiz-placeholder

Similar activities

27Mar

27Mar

University

10 Qs

Algorithms - Time Complexity

Algorithms - Time Complexity

University

10 Qs

BCSC0006 - Quiz 2 - Big-Oh Notation

BCSC0006 - Quiz 2 - Big-Oh Notation

University

10 Qs

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

University - Professional Development

10 Qs

Artificial Intelligence 1

Artificial Intelligence 1

University

10 Qs

Fundamentals of Algorithms - Unit I - Test 2

Fundamentals of Algorithms - Unit I - Test 2

University

10 Qs

KMP Pattern Matching

KMP Pattern Matching

University

10 Qs

Data Structure II

Data Structure II

University

10 Qs

time and space trade off

time and space trade off

Assessment

Quiz

Computers

University

Medium

Created by

Afzan Adam

Used 24+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

which if this is the variety of time and space trade off strategy?

variable time decrease

input enhancement

restructuring input

memory alllocation

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When do we need to consider sacrificing the memory space?

when we need a faster result

when memory is not a problem

When we dont have a powerfull processor

When building an algorithm for a game

3.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

formula for d1 value in bad match table is d(i)=m-index-_____

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Boyer Moore-Horspool algorithm.. (choose correct statements)

uses only 1 table

shift by selecting maximum value between d1 and d2

improves the complexity of Boyer Moore's algorithm

match from left to right (off the pattern)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Complexity of the brute force string matching algo is?

O(mn)

O(mn)

O(m+n)

O(n)

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Boyer Moore's Worse case complexity is____

O(m+n)

O(m/n)

O(n)

O(n-m)