time complexity time required to solve given prob how to estimate space complexity memory required to solve given prob