Posts

Showing posts with the label explanation

Exponentiation algorithm

Image
In programming there are not just 1 method to solve the problems for the exponential algorithm.What is exponential algorithm? Well is also can be mention as power. For example 2 to the power of 3 is 8 (2^3=8). Exponential algorithm is to find the value through computational way. You can computed an exponential by iterative. For example (in python): def iterPower(base, exp):     result=base     if exp==0:         return 1     else:         while exp>1:             result*=base             exp-=1         return result The code is like keep multiple the base number while minus the exponential value until the exp is 0.Is like 5^5=5*5*5*5*5 Above is an exponential by iteratively executing successive multiplications. Exponential can be computed in a recursive function. def recurPower(base, exp):     if exp==0: ...

Hypertext Markup Language (HTML)

Image
The purpose of HTTP is simply to provide a common ‘language’ in which the browser and the Web server can exchange information about Web pages and other resources. The real substance of the exchange, when the browser requests a Web page, is the section of the response that describes how the page will appear inside the browser window. The description of the Web page that the server sends is in a standard format, so that the browser can understand how the Web server wants it to display the page. This time the standard format is not in fact a protocol, because it does not define how two computers exchange information. It is actually a language, although the distinction is fine: there are rules about computer languages just as there are about a network protocols. The language that Web servers and browsers use to describe a Web page is Hypertext Markup Language (HTML). HTML is a language that is used primarily to format data on a page. It doesn’t contain any advanced support for doing com...