1) Insert Value at The End of The Array in INDEX'
1) Insert Value at The End of The Array in INDEX'
1) Start
Insert New value In Index
2) Set N=Size of Array
3) N=N+1;
4) LA[N-1]=12; 1 2 3 4 5 12
5) END
0 N-1
7. LA[J+1]=LA[J]; 1 2 3 4 5
4>=2 1 2 3 4 5
8. J=J-1; 3>=2 10 2 12 3 4 5
K-1
9. LA[K-1]=12; 2>=2
N-1
10. END 1>=2 false
Insert Value at the Before Given ‘INDEX’ in the Array
11. Start
Insert New value In Index
12. Set N=Size of Array
K=3
13. Set K= Given location //K=3
J J+1
14. Set=J=N 1 2 3 4 5
J+1
15. N=N+1; J
1 2 3 4 5
16. Repeat Step 7 & 8 While (J>=K-
1 2 3 4 5
2)
17. 1 2 3 4 5
18. LA[J+1]=LA[J]; 1 2 3 4 5
4>=3-2
19. J=J-1; 3>=3-2 1 12 2 3 4 5
20. LA[K-2]=12; 2>=3-2
21. END 0
1>=3-2 K-2 K-1 N-1
0>=3-2false
K=3;
K=3-2
K=1
J=4
Insert Value at the After Given ‘INDEX’ in the Array
22. Start
Insert New value In Index
23. Set N=Size of Array
24. Set K= Given location //K=3
J J+1
25. Set=J=N 1 2 3 4 5
J+1
26. N=N+1; J
28. LA[J+1]=LA[J]; 1 2 3 4 5
29. J=J-1; 1 2 3 12 4 5
4>=3
30. LA[K]=12;
3>=3
31. END 0 K-1
2>=3 false N-1
K
Delete Value at the Given ‘INDEX’ in the Array
32. Start
Insert New value In Index
33. Set N=Size of Array
34. Set K= Given location //K=3
J J+1
35. Set=J=k-1 K-1 1 2 3 4 5
36. Repeat Step 7 & 8 While (J<N)
1 2 4 5 Delete J+1
J
Replace 3 with 4
37. LA[J]=LA[J+1]; 1 2 4 5
1 2 4 5 Delete
38. J=J+1; 1 2 4 5 Delete
2<4
39. N=N-1;
3<4
40. END 0
4<4 false N-1
1 2 4 5
(A*(B+C))
Symbol Scanned Stack Post fixed
1 ( (
2 A ( A
3 * (* A
4 ( (*( A
5 B (*( AB
6 + (*(+ AB
7 ) (*(+) AB+
8 ) (*) AB+*
(A*(B+C)) IN post fixed AB+*
((A/B)+C/D)
Symbol Scanned Stack Post fixed
1 ( (
2 ( ((
3 A (( A
4 / ((/ A
5 B ((/ AB
6 ) ((/) AB
7 + (+ AB/
8 C (+ AB/C
9 / (+/ AB/C
10 D (+/ AB/CD
11 ) (+/) AB/CD/+
((A/B)+C/D) IN post fixed AB/CD/*