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
- Algorithm
- javascript
- while
- MIPS
- DATAPATH
- function
- Java
- php
- instruction
- DS
- CSS
- control
- MacOS
- architecture
- Class
- data structure
- react
- mysql
- computer
- for
- DB
- XML
- Pipelining
- python
- system
- Linux
- web
- html
- DoM
- github
Archives
- Today
- Total
목록random (2)
YYYEJI
[MIPS] Cache miss가 일어났을 때 replace되는 block
cache에서 miss가 일어났을 때 어떤 값이 새로운 data로 변경되어야 되는지에 대한 이론입니다. ① Random 랜덤으로 값을 replace 합니다. ② FIFO 가장 먼저 들어온 data가 replace 됩니다. problem - 가장 먼저 들어왔지만 자주 사용되는 data일수도 있음. ③ LRU(Least Recently Used) 가장 최근에 사용되지 않은 data가 replace 됩니다. (자주 사용되는 이론입니다.) ④ LFU(Least Frequently Used) 가장 reference가 적은 data가 replace됩니다. problem - 늦게 들어와서 reference 횟수가 적은 것일수도 있음 ◡̈
Computer architectures
2022. 12. 17. 21:56
[Python] Random 모듈
모듈(module)이란? 모듈이란 함수나 변수 또는 클래스를 모아 놓은 파일입니다. Random 모듈을 이용하기 위해서는 Random을 import 해줘야됩니다. import random • Random 모듈은 난수를 발생시킵니다. import random print(random.random()) # Floating point print(random.randrange(1, 10)) # integer alphabet = ['a', 'b', 'c'] random.shuffle(alphabet) print(alphabet) # Change the order of values in a list print(random.choice(alphabet)) # Character ◡̈
Python
2022. 11. 3. 18:15