Informally, algorithm is just a series of steps to solve some problem. To be more formal, an algorithm transform inputs into desired output.
So what exactly are steps? They are just “some basic operations”
And to do those computations, we can use Boolean Circuits
$\land$ and $\lor$ or $\lnot$ not
“Solve the problem” → Complete the function
“Basic Steps” → AND/OR/NOR operations
To implement those basic operations, we could use boolean circuits
we could use DAG - Direct Acyclic Graph - to represent the circuits
A (n, m, s) boolean circuit is a DAG with n + s vertices
n: number of variables
m: number of outputs
s: size of gates
x[0], x[1], ... x[n-1]
y[0], y[1], ..., y[m-1]
Example: