Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Algorithms

 Algorithms

Algorithms 101

Avatar for Eva Levanto

Eva Levanto

August 18, 2018
Tweet

More Decks by Eva Levanto

Other Decks in Programming

Transcript

  1. Pseudocode 1. Start 2. Create variable 3. Ask for email

    4. Store response 5. Check for validity: - If yes, go to 5 - If no, go to 2 6. End 2
  2. 3

  3. Examples - Sorting - FFT - Digital media - Dijkstra

    - RSA, Hashing - Factorization - Gale Shapley - Searching 4
  4. Principles of Algorithms Computability - Can it be solved by

    computers? Complexity - How much space and time can it take up? Automata - How will it be modelled? 5
  5. Big O ◎ O(1) - Constant time ◎ O(n) -

    Linear ◎ O(log n) - Logarithmic ◎ O(n^2) - Quadratic ◎ O(2^n) - Exponential 6
  6. 7

  7. 9

  8. 10

  9. 11