Informatiker Board (http://www.informatikerboard.de/board/index.php)
- Themengebiete (http://www.informatikerboard.de/board/board.php?boardid=1)
--- Praktische Informatik (http://www.informatikerboard.de/board/board.php?boardid=6)
---- Algorithmen (http://www.informatikerboard.de/board/board.php?boardid=17)
----- Analysiere rekursiven Code (http://www.informatikerboard.de/board/thread.php?threadid=1213)


Geschrieben von paco89 am 17.05.2012 um 13:55:

  Analysiere rekursiven Code

hallo, ich muss die laufzeit von folgendem code (siehe bild) analysieren. ich weiß, aber nicht wie das geht. kann mir da jmd. weiterhelfen?

die musterlösung ist:

T(n) = T(n/2) + c1 * log(n) + c2


ich kenne also die musterlösung. allerdings weiß ich nicht, wie man darauf kommt...bitte daher um hilfe...Augenzwinkern


Forensoftware: Burning Board, entwickelt von WoltLab GmbH