algorithms
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
algorithms [2013/02/10 19:08] – skipidar | algorithms [2020/12/27 20:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Algorithms and DataScructure ===== | ||
+ | === Datastructure === | ||
+ | |||
+ | ^List ^Random Access ^ Tyical Usage ^API ^ | ||
+ | |Queue |FIFO | Buffer | | | ||
+ | |Stack |LIFO | Iterative Algorithms |push(X) pop()| | ||
+ | |Heap (Prioritätsschlange)|HIFO (HighpriorityFirstOut) - there are two kind of heaps: \\ min-heaps, where root nodes are allways larger, then their children. \\ max-heaps, where root nodes are allways **smaller** than their children. | Sorting. | add(X) popMax() | | ||
+ | |Tree| Hierarchical | Search| | | ||
+ | |||
+ | |||| | ||
+ | |||
+ | |||
+ | === Sorting === | ||
+ | It is known, that the best possible way to sort series of numbers __(without additional knowledge about the initial ordering)__ **O(n*log(n))** . | ||
+ | |||
+ | |||
+ | ^Name ^Big O ^ Algorithm ^ | ||
+ | |Bubble sort | < | ||
+ | |Insertion sort | < | ||
+ | |Count sort | < | ||
+ | |Selection sort | < | ||
+ | |Quick sort | < | ||
+ | |Merge sort | < | ||
+ | |Tree sort | < | ||
+ | |Heap sort | < | ||
+ | |||
+ | |||
+ | === Search === | ||
+ | Searching is done in balanced trees. The trees are binary trees, where | ||
+ | * the left child is **smaller** than parent, | ||
+ | * the right child is **larger** than parent | ||
+ | * the nodes have weighs, which reflect the probability, | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | === Glossary === | ||
+ | ^German^English^ | ||
+ | |O von f(n)|Big Oh of g of n| | ||
+ | |n hoch x|n to the power of x| | ||
+ | |n zum quadrat| n square| |