Autor Beitrag
Delphi Noob
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24

win xp
D6 Enterprise
BeitragVerfasst: Do 15.03.07 15:27 
Schreibe morgen Abi Klausur Informatik.
Meine Lehrerin hat mir heute noch gemailt, das ich mir die mittlere Anzahl der Vergleiche beim Suchen nochmal angucken soll.

Weiß aber im moment nicht was sie damit meint.(Unsere letztes Thema war (Such)Bäume und Zeiger)
Könnt ihr mir sagen was damit gemeint ist ??


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Do 15.03.2007 um 15:02
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 15.03.07 15:57 
Moin!

Damit ist gemeint, welchen Aufwand das Verfahren erzeugt. Schau mal nach der sog. Big-O-Notation (z.B. O(n)=n log n). ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8549
Erhaltene Danke: 478

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 15.03.07 16:01 
Wenn ihr Suchbäume gemacht habt, dann werdet ihr darin sicherlich auch gesucht haben. Wie lange braucht man denn in so nem Suchbaum, bis man was gefunden hat? So in etwa Log(n)-viele Schritte, oder? Und das "in etwa" wird mit diesem dicken O geregelt ;-).

Und wie lange baucht man beim Suchen in einem sortierten Array? (Falls ihr auch Binärsuche oder so gemacht habt.)

_________________
We are, we were and will not be.
r2c2
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 324
Erhaltene Danke: 2

Linux

BeitragVerfasst: Do 15.03.07 17:42 
Siehe meine Facharbeit. Irgendwo im Anhang is auch der Beweis für die Binärsuche...

mfg

Christian

_________________
Kaum macht man's richtig, schon klappts!