For the input expression (4*7+1)*2, construct an annotated parse tree.
For the input expression (4*7+1)*2, construct an annotated parse tree.
What is Basic Block? List out the basic blocks and draw the flow graph for the following code:
1. |
location= -1 |
2. |
i=0 |
3. |
i<100 goto 5 |
4. |
goto 13 |
5. |
t1=4*i |
6. |
t2=A[t1] |
7. |
if t2=x goto 9 |
8. |
goto 10 |
9. |
location=i |
10. |
t3=i+1 |
11. |
i=t3 |
12. |
goto 3 |
13. |
… |
What do you mean by balancing of DFD? Explain with a suitable example.
Write a C program to print all prime no.(1-100).
What are the differences between AVL Tree & Binary Search Tree ?