The Gateway to Computer Science Excellence
+1 vote
Construct the DAG for the expression
$((x + y)-((x + y)\ast(x -y))) + ((x+y)\ast(x-y))$
in Compiler Design by Veteran (60.7k points) | 62 views

2 Answers

0 votes

DAG for the expression ((x+y)−((x+y)∗(x−y)))+((x+y)∗(x−y))


by Loyal (5.2k points)
I think you missed this part "minus from the Top should be connected to multiply" because of this condition ((x+y)−((x+y)∗(x−y)))
0 votes

((x+y)−((x+y)∗(x−y))) and ((x+y)∗(x−y)) expression needed to be added together at the end. So according to me, DAG should be following...


by Active (1.3k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,833 questions
57,733 answers
107,886 users