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
- MacOS
- DS
- data structure
- instruction
- DB
- architecture
- for
- Class
- php
- mysql
- python
- while
- Java
- computer
- Algorithm
- DoM
- github
- system
- web
- DATAPATH
- javascript
- function
- Pipelining
- control
- react
- XML
- MIPS
- Linux
- html
- CSS
Archives
- Today
- Total
목록prefix (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