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

Karteikarten

Recursion

Virginie Gagné Computer Science Englisch 7 Karten

Recursion

Karten in diesem Stapel (7)

  1. 1alg for factorialalg for factorial
  2. 2alg for fibonacciF(n) = F(n-1)+F(n-2)alg for fibonacci
  3. 3fibonacci time complexityn passes through for loop
    each pass is small constant c
    so cn steps
  4. 4reversing a listremove the first element and reverse the remaining elements then add the removed element at the end of the reversed.reversing a list
  5. 5sorting a listRemove the minimum element, sort the rest list (recursively), and add the minimum element to the front of the sorted rest listsorting a list
  6. 6Tower of Hanoi def1. A larger disk cannot be on top of a smaller disk.
    2. Each move consists of popping a disk from one stack and pushing it onto another stack, or more intuitively, taking the disk at the top of one stack and putting it on another stack.
  7. 7Tower of Hanoi algTower of Hanoi alg

Informationen

Beschreibung
Computer Science Karteikarten am Recursion, erstellt von Virginie Gagné am 15/04/2022.
Erstellt von
Virginie Gagné
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck