Starting with the tic-tac-toe program of Figure 12.4, draw a directed acyclic graph in which every clause
Question:
Starting with the tic-tac-toe program of Figure 12.4, draw a directed acyclic graph in which every clause is a node and an arc from A to B indicates that it is important, either for correctness or efficiency, that A come before B in the program. (Do not draw any other arcs.) Any topological sort of your graph should constitute an equally efficient version of the program. (Is the existing program one of them?)
Figure 12.4:
Step by Step Answer:
Related Book For
Question Posted: