very clear teaching style and we can emphasis it easily..thank you very much sir and keep it up more and more........
@Mohan-20342 ай бұрын
Best teacher from somalia 🇸🇴 east Africa ❤❤❤
@MUM-l8f2 ай бұрын
Sir your teaching style and content are awesome 👍❤
@eghanshith53462 ай бұрын
1.Priori vs. Posterior Analysis: Priori analysis estimates time and memory space before executing an algorithm. Posterior analysis calculates these after execution. We focus on priori analysis for simplicity. 2.Space Complexity Components: Ignore space for source code and simple variables (constants). Consider space for data structures used (e.g., lists). Not applicable here: stack space for recursive algorithms. 3.Example Algorithm: Sum of N Elements: Non-recursive, iterative algorithm. Data structure: list with N elements. Space complexity: O(N) due to list size. Remember, space complexity matters when optimizing memory usage! 🚀
@talishnaider957515 күн бұрын
Shouldn't space complexity of an algorithm consider only the additional space required by the algorithm beyond the input? the array a was given to us so the complexity should be O(1) no?