time and space trade off

time and space trade off

University

6 Qs

quiz-placeholder

Similar activities

KMP Pattern Matching

KMP Pattern Matching

University

10 Qs

Redes de Computadores e Telecomunicações aula 2

Redes de Computadores e Telecomunicações aula 2

1st Grade - University

10 Qs

BCSC0006 - Quiz 4 - Linked List & Stacks

BCSC0006 - Quiz 4 - Linked List & Stacks

University

10 Qs

Quiz Matias🙃🙃

Quiz Matias🙃🙃

1st Grade - Professional Development

10 Qs

Parauga meklēšana

Parauga meklēšana

University

5 Qs

Theory of Computation Quiz

Theory of Computation Quiz

University

10 Qs

Chapter 1: IT Infrastructure and Emerging Technology

Chapter 1: IT Infrastructure and Emerging Technology

University

11 Qs

1ª Quiz de OAC

1ª Quiz de OAC

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)