Imagine you have a document. A hashing algorithm takes this document and processes it through a complex mathematical function. The output is a unique hash value, a string of characters.
5
56 reads
CURATED FROM
IDEAS CURATED BY
Similar ideas to How It Works
The last step of an algorithm is output - expressing the answer.
Output to a computer is usually more data. It allows computers to string algorithms together in complex ways to produce more algorithms. Output can also present information, such as putting words on a screen.
Once we have the action tree, running the code is easy. Each action node has a function ‘execute’ which takes some input, does whatever the action should (including possibly calling sub action) and returns the action’s output. This is the interpreter in action.
So as you can see from the image we are using 2 variables, x and y. Like in the previous lessons explained about variables, x contains the string Hello World, what makes it a string is " " the use of these quotation marks. Next in y there is a integer value 10. Then i am adding them both together...
Read & Learn
20x Faster
without
deepstash
with
deepstash
with
deepstash
Personalized microlearning
—
100+ Learning Journeys
—
Access to 200,000+ ideas
—
Access to the mobile app
—
Unlimited idea saving
—
—
Unlimited history
—
—
Unlimited listening to ideas
—
—
Downloading & offline access
—
—
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates