edited by
554 views
1 votes
1 votes

Here is a sequence of twelve array assignments and references:
  1. r = a[i]
  2. s = a[j]
  3. t = a[i]
  4. a[j] = b
  5. u = a[i]
  6. v = a[j]
  7. a[j] = c
  8. w = a[i]
  9. x = a[j]
  10. y = a[i]
  11. z = a[j]
  12. a[j] = b

Construct the DAG for these instructions. Which of the following pairs of variables label the same node of the DAG?

 
  a)  t and u
  b)  r and s
  c)  w and y
  d)  t and s
edited by

Please log in or register to answer this question.

Related questions

2 votes
2 votes
1 answer
1
0 votes
0 votes
3 answers
2
radha gogia asked Dec 9, 2015
1,321 views
In this one I am unable to follow in the above node marked as "-" ,it has two edges one upward and one downward for "+" node so then how to proceed with this ?
0 votes
0 votes
1 answer
3
phprashanthans asked Dec 3, 2017
848 views
What will be the DAG representation of a=b+c , b= b+c
6 votes
6 votes
1 answer
4
set2018 asked Sep 28, 2017
3,047 views
A) 2B)3C) 4D) 5