Pseudo Code Example
Let us consider a less abstract example (pun intended).
Take a look at the pseudo code below.
This piece of pseudo code is already an abstraction of an algorithm expressed in a programming language. Can you guess what it does by looking at it for a maximum time of 15 seconds?
Now what if we were to abstract some parts away in functions that we could use inside this algorithm as follows:
Now you immediately see that the pseudocode creates an array of random values that then is being sorted in ascending order. That clearness is abstraction at work.
Last updated