DAA FT REVIEWER

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

big O notation

  • mathematical tool to measure algorithm efficiency

  • describes how running time grows with input size

  • focuses on worst-case performance

  • ignores machine-specific details

2
New cards
  • O(I) - constant time

  • O (log n) - logarithmic time

  • O(n) - linear time

  • O (n log n) - linearithmic time

  • O(n²) - quadratic time

  • O (2^n), O(n!) - exponential/factorial

common big-O classes

3
New cards

constant time O (I)

  • runtime does not grow with input size

  • operations take the same time regardless of n

4
New cards

logarithmic time O(log n)

  • input is repeatedly divided

  • very efficient for large inputs

5
New cards

linear time O(n)

  • work grows directly with input size

  • processes each element once

6
New cards

linearithmic time O(n log n)

  • common for divide and conquer

  • faster than quadratic, slower than linear

7
New cards

quadratic time O(n²)

  • caused by nested loops

  • work grows with the square of input size

8
New cards

exponential time O(2^n)

  • work doubles for every additional elements

  • very slow for large inputs

9
New cards

factorial time O(n!)

  • grows extremely fast

  • common in brute force

10
New cards

omega notation

  • Ω describes a lower bound

  • guarantees the runtime is at least f(n)

  • used to highlight minimum possible performance

11
New cards

theta notation

  • Θ gives a tight bound

  • Describes the exact growth rate

  • Used when best and worst cases are in the same order of magnitude

12
New cards

best case

  • Fastest possible execution​

  • Minimum operations​

  • Represented using Ω​

13
New cards

average case

  • Expected performance across typical inputs​

  • Balanced view​

  • Represented using Θ​

14
New cards

worst case

  • Slowest possible scenario​

  • Maximum operations​

  • Represented using O​

15
New cards

space complexity

  • measures memory usage:

    • variables

    • temporary structures

    • recursion depth

16
New cards

input space

memory needed to store input itself

17
New cards

auxiliary space

extra memory required by the algorithm

18
New cards

output space

memory required to store the result

19
New cards