WIA2005 Lecture 1 Asymptotic Notation

WIA2005 Lecture 1 Asymptotic Notation

University

10 Qs

quiz-placeholder

Similar activities

Algorithm analysis: divide & conquer theory

Algorithm analysis: divide & conquer theory

University

10 Qs

DAA - Class Test 1

DAA - Class Test 1

University

7 Qs

DS-U2-QUIZ2

DS-U2-QUIZ2

University

12 Qs

DAA_C_MCQ_2

DAA_C_MCQ_2

University

10 Qs

DAA-Test L2

DAA-Test L2

University

10 Qs

PDS - 04225  Intro to Data Structures and Algorithms - Chapter 2

PDS - 04225 Intro to Data Structures and Algorithms - Chapter 2

University

10 Qs

CS 2050 recitation 5 Sets

CS 2050 recitation 5 Sets

University

11 Qs

TEAM 2

TEAM 2

University

8 Qs

WIA2005 Lecture 1 Asymptotic Notation

WIA2005 Lecture 1 Asymptotic Notation

Assessment

Quiz

Computers

University

Medium

Created by

ASMIZA SANI

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is an algorithm?

An algorithm is any pseudocode that takes some value, or set of values, as input and produces some value, or set of values, as output.

An algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output.

An algorithm is any transformation method that takes some value, or set of values, as input and produces some value, or set of values, as output.

An algorithm is any programming code that takes some value, or set of values, as input and produces some value, or set of values, as output.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

We study algorithm for the following reason, except:

Algorithms help us to understand scalability.

Algorithmic mathematics provides a language for talking about program behaviour.

Correctness is the currency of computing.

The lessons of program performance generalize to other computing resources.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

These are all the properties that an algorithm should have, except:

There can be no ambiguity as to which step will be performed next.

It must be composed of a infinite number of steps.

It must be correct.

It must terminate.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The rate of growth is _______.

the rate at which running time is bounded by a function.

the rate at which the input number is increasing.

the rate at which running time increases as function of input.

the rate at which the running time is increasing.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Big O notation represents______.

the worst time (upper bound)

the best time (lower bound)

the average time

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the asymptotic notation for the following function?

f(n) = n1/2 + 5

T(n) = O(n)

T(n) = O(n1/2)

T(n) = O(n) +5

T(n) = O(n1/2 + 5)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If function f is bounded below by function g asymtotically, what is the appropriate asymptotic notation?

g(n) = Ω(f(n))

f(n) = Ω(g(n))

f(n) = O(g(n))

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?