Algorithms (in <algorithm>) operate on containers, including strings. They may not always be the fastest option but they're often the easiest. They fall into 6 groups:
- Search algorithms - search(), count_if(), etc.
- Sorting algorithms - sort(), merge(), etc.
- Deletion algorithms - remove(), unique(), etc.
- Numeric algorithms - partial_sum(), inner_product(), etc.
- Generation algorithms - generate(), for_each(), etc.
- Relational algorithms - equal(), min(), etc.
No comments:
Post a Comment