Computer Science, asked by jishika3011, 1 month ago

The Digital Computer II is a machine where balls enter from the top and find their
way to the bottom via a certain circuit defined by switches. Whenever a ball falls
on a switch, it either goes to the left or to the right depending on the state of the
switch and flips this state. Abstractly it can be modelled by a directed graph with
a vertex of out-degree 2 for each switch and In addition, a designated end vertex
of out-degree 0. One of the switch vertices is the start vertex, it has in-degree 0.
Each switch vertex has an internal state (L/R). A ball starts at the start vertex
and follows a path down to the end vertex, where at each switch vertex it will
pick the left or right outgoing edge based on the internal state of the switch
vertex. The internal state of a vertex is flipped after a ball passes through. A ball
always goes down and therefore cannot get into a loop.
One can "program" this machine by specifying the graph structure, the initial
states of each switch vertex and the number of balls that enter. The result of the
computation is the state of the switches at the end of the computation.
Interestingly, one can program quite sophisticated algorithms such as addition,
multiplication, division and even the stable marriage problem. However, it is not
Turing complete.
w

Answers

Answered by becool1224
0

Answer:

Yes

Explanation:

Similar questions