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

2 Answers

0 votes

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

 

by Active (5.1k points)
0
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 Junior (895 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,645 questions
56,597 answers
195,835 comments
102,123 users