7.3 Algorithm (Flowchart & Pseudocode)

Cards (4)

  • Pseudocode
    Standard method of describing the steps of an algorithm using a mix of programming language conventions and informal notation
  • Pseudocode
    • The person reading the pseudocode does not need to know a programming language to understand the algorithm
    • Commonly used in CS research papers
  • Elements of Pseudocode
    • Assignment statement
    • Input and Output
  • Assignment statement

    • Variable ← value
    • E.g. (X ←5 name ← "Adam")
    • Multiple values (E.g. Name ← "Hello" + "Adam")