SLIDE 1
Algorithms
- 1. Existence
- 2. Efficiency
- Time
- Space
Algorithms 1. Existence 2. Efficiency Time Space Worst case - - PowerPoint PPT Presentation
Algorithms 1. Existence 2. Efficiency Time Space Worst case behavior analysis as a function of input size Asymptotic growth: O W Q o w Donald Knuth Upper Bounds Definition: f(n) = O(g(n)) $ c,k > 0 ' 0 f(n) c
n
n
n n
n
2 1
Primitive types: 1. Boolean 2. Character 3. Floating-point 4. Double 5. Integer 6. Enumerated type Abstract data types: 7. Array 8. Container 9. Map
Composite types:
Arrays:
Lists:
Binary trees:
Binary trees (continued):
Trees:
B-trees:
Heaps:
Multiway trees:
Space-partitioning trees:
Space-partitioning trees (cont):
Application-specific trees:
Hashes:
Graphs:
Other: