memóriakomplexitás
Memóriakomplexitás, in the context of computer science and algorithm analysis, refers to the amount of memory an algorithm requires to run. It is one of the two primary measures, along with time complexity, used to evaluate the efficiency of an algorithm. Memory complexity is typically expressed using Big O notation, which describes the upper bound of the memory usage as the input size grows.
The memory used by an algorithm can be broadly categorized into two types: auxiliary space and input
When analyzing the memory complexity, we focus on how the auxiliary space scales with the size of