Computer science is the mathematics behind counting.
You count the number of "swap" operations in insertion sort, quicksort, or merge sort. You count the number of "memory" operations. You count the number of bytes used.
When precise counts are difficult, you learn big-O notation to estimate how counts change as variable grow. Etc. etc. etc.
You count the number of "swap" operations in insertion sort, quicksort, or merge sort. You count the number of "memory" operations. You count the number of bytes used.
When precise counts are difficult, you learn big-O notation to estimate how counts change as variable grow. Etc. etc. etc.