time and space trade off

time and space trade off

University

6 Qs

quiz-placeholder

Similar activities

CS 2050 Recitation 6 - efficiency and algos

CS 2050 Recitation 6 - efficiency and algos

University

9 Qs

RVS_Tech_quizz_even2024-25

RVS_Tech_quizz_even2024-25

University

10 Qs

Complexity Analysis Station [1]

Complexity Analysis Station [1]

University

7 Qs

ADA

ADA

University

6 Qs

MPS   INTERNAL 2 TEST

MPS INTERNAL 2 TEST

University

6 Qs

Data Structures and Algorithm

Data Structures and Algorithm

University

9 Qs

Object Detection

Object Detection

University

10 Qs

JAVALO3

JAVALO3

University

11 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)