GoConqr has a new look! Let us know what you think.

Quiz

D-Structures and Algorithms Midterm

Upma Sharma 27 questions Updated 21 Jan 2019

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (27)

  1. 1An algorithm is a step-by-step procedure for solving a problem in a finite amount of time.
    1. ATrue
    2. BFalse
  2. 2Algorithms (choose correct)
    1. Atransform input objects --> output objects
    2. Bruntime grows with input size
    3. CAverage case size difficult to determine, focus on WORST CASE RUN TIME
    4. DBest case size is most difficult to determine
  3. 3To compare two algorithms same hardware and software must be used. Implementing algorithms is important, but difficult.
    1. ATrue
    2. BFalse
  4. 4Theoretical Analysis of an algorithm
    1. Auses high level description of the algorithm instead of an implementation
    2. Bcharacterizes run time as f(x) of input size (n) and accounts for all possible inputs
    3. Cenables speed evaluation of algorithm independent of software/hardware
    4. Dunable to do speed evaluation of algorithm independent of software/hardware
  5. 5Pseudocode:
    1. Ahigh level description of an algorithm
    2. BMore structured than English prose, but less detailed than program
    3. Chides program design issues
    4. Dallows you to see program design issues.
  6. 6Primitive Operations
    1. Abasic computations performed by an algorithm
    2. Blargely independent of programming language
    3. Cassumed to take constant time in RAM model
    4. Didentifiable in pseudocode
  7. 7Growth Rate of Running Time
    1. Achanges with hardware/software
    2. BAffects T(n) by constant factor
    3. CAlters the growth rate of T(n)
    4. DDoes not alter the growth rate of T(n)
  8. 8The growth rate of an algorithm is
    1. Anot affected by constant factors
    2. Bnot affected by lower order terms
    3. Cis affected by constant factors
  9. 9Big-Oh notation: given f(n) and g(n), f(n) is O(g(n)) if positive constants c and n(v 0) such that:
    f(n) <= cg(n) for n >= n(not)
    1. ATrue
    2. BFalse
  10. 10Big Oh notation
    1. Agive upper bound on growth rate of fun
    2. Bfunctions are ranked according to growth rate:

Information

Description
Quiz on D-Structures and Algorithms Midterm, created by Upma Sharma on 11/01/2019.
Language
English
Views
2
History
Created on 11 Jan 2019 · updated on 21 Jan 2019
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?