time and space trade off

time and space trade off

University

6 Qs

quiz-placeholder

Similar activities

Artificial Intelligence 1

Artificial Intelligence 1

University

10 Qs

CC 104 Prelim

CC 104 Prelim

University

11 Qs

ADA QUIZZZZZ 2nd Time

ADA QUIZZZZZ 2nd Time

University

10 Qs

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

Algorithm analysis: divide & conquer theory

Algorithm analysis: divide & conquer theory

University

10 Qs

AdvancedProgramming_intro

AdvancedProgramming_intro

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)