GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Math stuff

Virginie Gagné Computer Science Englisch 11 Karten

Math stuff

Karten in diesem Stapel (11)

  1. 1what's 101011 in hexadecimal base101011 -> 0010 1011
    -> 2 and b
    ->0x2b
  2. 2base converting alg decimal to binarybase converting alg decimal to binary
  3. 3base converting alg base 10 to other basebase converting alg base 10 to other base
  4. 4addition algaddition alg
  5. 5slow multiplication algslow multiplication alg
  6. 6fast multiplication algfast multiplication alg
  7. 7slow division algslow division alg
  8. 8How many operations are required for the addition alg?c1+c2N operations, i.e. a constant c1 plus a term that is proportional (with factor c2) to the number N of digits.
    (some instructions executed once, then a for loop n times)
  9. 9How many operations are required for the multiplication alg?two main steps, each having a pair of for loops, one nested inside the other.
    “nesting” leads to N^2 passes through the inner loop.
    instructions are executed N times before for loop
    so c3 + c4N + c5N^2
    The dominating term will be the N2 term. We will say that the algorithm runs in time O(N^2)
  10. 10Addition for another base algAddition for another base alg
  11. 11what is / in Java? what is %?integer (floor) division
    remainder operator (NOT mod)
    (a/b) ∗ b + (a % b) = a

Informationen

Beschreibung
Computer Science Karteikarten am Math stuff, erstellt von Virginie Gagné am 17/04/2022.
Erstellt von
Virginie Gagné
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck