Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- control
- DS
- DoM
- github
- system
- mysql
- XML
- html
- data structure
- javascript
- Class
- MacOS
- Linux
- php
- computer
- web
- python
- CSS
- architecture
- for
- Algorithm
- function
- Java
- Pipelining
- instruction
- DB
- while
- DATAPATH
- MIPS
- react
Archives
- Today
- Total
목록infix (1)
YYYEJI
[DS] Stack 응용 (infix, prefix, postfix)
수식을 표현하는데 3가지 표현이 있습니다. 수식(expression)의 표현 수식의 표현은 2진수 연산자(binary operator)를 표함하는 수식에서 연산자(operator)와 피연산자(operand)의 위치에 따라 결정됩니다. infix → a+b prefix → +ab postfix → ab+ infix - 두 피연산자(operand) 사이에 연산자(operator)가 위치한 수식 prefix - 두 피연산자(operand) 앞에 연산자(operator)가 위치한 수식 postfix - 두 피연산자(operand) 뒤에 연산자(operator)가 위치한 수식 prefix와 postfix를 알아야 하는 이유 우리에게는 infix가 익숙하지만 컴퓨터는 prefix와 postfix가 유리합니다. 수식..
Data structure
2022. 12. 28. 19:52