Simulating using abstract machines
The more operations an algorithm requires, the more complex it is. Complexity is
a measure of algorithm efficiency in terms of time usage because each operation
takes some time. Given the same problem, complex algorithms are generally less
favorable than simple algorithms because complex algorithms require more time.
Think about those times when speed of execution makes the difference, such as in
the medical or financial sector, or when flying on automatic pilot on an airplane
or space rocket. Measuring algorithm complexity is a challenging task, though a
CHAPTER 2
Do'stlaringiz bilan baham: |