infix and postfix Flashcards

(19 cards)

1
Q

9 3 / 5 + =

A

9 / 3 -> 3 5 + -> 3 + 5 = 8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

35*7+ =

A

(3*5) -> (7 + 15) -> 22

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

42351-+*+ =

A

4234++ -> 427+ -> 4(14)+ -> 18

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

in postfix there is no need for an order of ……… of ………..

A

precedence, operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

…… can be ……… by a computer as they are entered ….. to ……

A

postfix, evaluated, left, right

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

an …… in postfix can be ……. by a computer …… than one in infix

A

expression, processed, quicker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

no need for ……

A

brackets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

infix to postfix - step one, add the ….
3+2+2*5 =

A

brackets
((3+2) + (2*5))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

infix to postfix - step two, move operations out of brackets
((3+2) + (2*5)) =

A

((3 2) + (2 5) *) +

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

infix to postfix - step 3, remove brackets
((3 2) + (2 5) *) + =

A

3 2 + 2 5 * +

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

postfix to infix - step one, put all the terms up until the first …… into the bins
3 4 + 2 * =

A

4
3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

postfix to infix - step two, add operation in between the 2 most recent values (number at top moves to right)
4 +
3

A

3 + 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

postfix to infix - step 3, add the next numbers
(3 + 4) 2 * =

A

2
(3 + 4)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

postfix to infix - step 4, apply operation to next two values
2 *
(3 + 4)

A

(3 + 4) * 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

when converting from postfix to infix, the number at the top moves to the ……

A

right

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is infix?

A

humans solving maths by BIDMAS

17
Q

what is postfix?

A

computers solving maths (stack)

18
Q

what is another name for postfix

19
Q

what does RPN stand for

A

reverse polish notation