Can someone explain to me the following calculation of the complexity of space?
Given the stream of numbers of bits of size b, calculate the sum of these numbers.If we have seen T-numbers so far, the sum does not exceed T2 ^ b and, therefore, no more than O (b + log T) is required.
Given the stream of numbers of bits of size b, calculate the sum of these numbers.
If we have seen T-numbers so far, the sum does not exceed T2 ^ b and, therefore, no more than O (b + log T) is required.
Now T2 ^ b should be the upper bound because the more precise upper bound will be T (2 ^ b - 1).
But how did they calculate that the upper bound of space is O (b + logT)?
With m bits, you can store numbers up to (about) 2 m . So, working differently, if you know the sum, you need to take the logarithm to get the number of bits (and therefore the complexity of the space).
Here log (T 2 b ) = b + log (T).
Source: https://habr.com/ru/post/1241196/More articles:SMJobBless throws error CFErrorDomainLaunchd Code = 8 - iosin the header is not part of the console in the border browser - javascriptAndroid: java.lang.NullPointerException: attempt to call the virtual method "java.lang.String java.lang.Object.toString ()" in a reference to a null object - javaWhile submitting a job using pyspark, how do I access the download of static files using the --files argument? - pythonHow to resolve Pod installation error? - iosError: resource not found that matches the specified name: attr 'typeface' - javaODP.NET Managed Connection Closes / Opens Every 3 Minutes - oracleNew Google Play icon does not fit - htmlSetting the focus of an input element in vue.js - javascripticon size: GOOGLE PLAY STORE and APPLE APP STORE margin: increase the margin by the APPLE icon to fit the size - htmlAll Articles