SlideShare a Scribd company logo
1 of 13
2.2.3  연결된 할당  - part1 박솔이 2011-04-23
Linked allocation 항목  1 B 내용 주소 A 항목  2 C B 항목  3 D C 항목  4 E D 항목  5 Λ E 항목  1 • 항목  2 • 항목  3 • 항목  4 • 항목  5 • FIRST
연결 할당의 특징  1 항목 • 다음 항목의  주소를 가리키는 메모리 공간 항목  1 • 항목  2 • 항목  3 • 항목  1 • 항목  2 • 항목  3 • 항목  1 • 항목  2 • 항목  1.5 •
연결 할당의 특징  2 항목  1 • 항목  K • 항목  N • FIRST 접근하기 위해 링크 참조를  K 번 수행 … … SELECT EASY TO MERGE EASY TO SEPARATE EASY TO EXPAND
순차적 목록과의 비교 INC1 c LD1 0,1(LINK) 순차적 목록 연결된 목록 MORE FASTER! > + 컴퓨터  1  주기 차이 +  페이징 시간 항목들이 대량의 메모리로  서로 다른 페이지에 흩어져 있을 때
List of available space 새 노드로 사용 가능한 빈 공간들의 집합을 선형 목록으로 연결한 동작 저장소 풀 (storage pool) :  할당 가능한 모든 노드의 집합 INFO LINK ,[object Object],[object Object],[object Object],[object Object],[object Object]
AVAIL  스택을 위한 특별한 표기법 X ← AVAIL AVAIL ← LINK(AVAIL) X  AVAIL 만일  AVAIL =  Λ   이면  OVERFLOW, 그렇지 않다면 LINK(X) ← AVAIL AVAIL ← X AVAIL  X
AVAIL  스택 기법  1 가변 크기의 테이블과 메모리를 공존해야 할 경우 ,[object Object],[object Object],[object Object],[object Object]
AVAIL  스택 기법  2 PUSH DOWN (17 time units) INFO EQU 0:3 INFO  필드의 정의 LINK EQU 4:5 LINK  필드의 정의 LD1 AVAIL P ← AVAIL J1Z OVERFLOW AVAIL =  Λ   인가 ? LDA 0,1(LINK) STA AVAIL AVAIL ← LINK(P) LDA Y STA 0,1(INFO) INFO(P) ← Y LDA T STA 0,1(LINK) LINK(P) ← T ST1 T T ← P.
AVAIL  스택 기법  3 POP UP LD1 T P ← T J1Z UNDERFLOW T =  Λ   인가 ? LDA 0,1(LINK) STA T T ← LINK(P) LDA 0,1(INFO) STA Y Y ← INFO(P) LDA AVAIL STA 0,1(LINK) LINK(P) ← AVAIL ST1 AVAIL AVAIL ← P
AVAIL  스택 주의할 점 ,[object Object],[object Object],• • • … … HEAD TAIL • • • … … AVAIL
AVAIL  스택 적용 ADD P  AVAIL INFO(P) ← Y LINK(P) ←  Λ LINK(TAIL)  ←  P TAIL ← P 빈 대기열은  HEAD =  Λ   이고  TAIL = LOC(HEAD)  로 표현된다 . DELETE 만일  HEAD =  Λ   이면  UNDERFLOW 그렇지 않으면 , P ← HEAD HEAD ← LINK(P) Y ← INFO(P) AVAIL  P 그리고  HEAD =  Λ   이 될 경우  R ← LOC(HEAD)
문제 풀이 #3, #5, #7

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

2.2.3 part1

  • 1. 2.2.3 연결된 할당 - part1 박솔이 2011-04-23
  • 2. Linked allocation 항목 1 B 내용 주소 A 항목 2 C B 항목 3 D C 항목 4 E D 항목 5 Λ E 항목 1 • 항목 2 • 항목 3 • 항목 4 • 항목 5 • FIRST
  • 3. 연결 할당의 특징 1 항목 • 다음 항목의 주소를 가리키는 메모리 공간 항목 1 • 항목 2 • 항목 3 • 항목 1 • 항목 2 • 항목 3 • 항목 1 • 항목 2 • 항목 1.5 •
  • 4. 연결 할당의 특징 2 항목 1 • 항목 K • 항목 N • FIRST 접근하기 위해 링크 참조를 K 번 수행 … … SELECT EASY TO MERGE EASY TO SEPARATE EASY TO EXPAND
  • 5. 순차적 목록과의 비교 INC1 c LD1 0,1(LINK) 순차적 목록 연결된 목록 MORE FASTER! > + 컴퓨터 1 주기 차이 + 페이징 시간 항목들이 대량의 메모리로 서로 다른 페이지에 흩어져 있을 때
  • 6.
  • 7. AVAIL 스택을 위한 특별한 표기법 X ← AVAIL AVAIL ← LINK(AVAIL) X AVAIL 만일 AVAIL = Λ 이면 OVERFLOW, 그렇지 않다면 LINK(X) ← AVAIL AVAIL ← X AVAIL X
  • 8.
  • 9. AVAIL 스택 기법 2 PUSH DOWN (17 time units) INFO EQU 0:3 INFO 필드의 정의 LINK EQU 4:5 LINK 필드의 정의 LD1 AVAIL P ← AVAIL J1Z OVERFLOW AVAIL = Λ 인가 ? LDA 0,1(LINK) STA AVAIL AVAIL ← LINK(P) LDA Y STA 0,1(INFO) INFO(P) ← Y LDA T STA 0,1(LINK) LINK(P) ← T ST1 T T ← P.
  • 10. AVAIL 스택 기법 3 POP UP LD1 T P ← T J1Z UNDERFLOW T = Λ 인가 ? LDA 0,1(LINK) STA T T ← LINK(P) LDA 0,1(INFO) STA Y Y ← INFO(P) LDA AVAIL STA 0,1(LINK) LINK(P) ← AVAIL ST1 AVAIL AVAIL ← P
  • 11.
  • 12. AVAIL 스택 적용 ADD P AVAIL INFO(P) ← Y LINK(P) ← Λ LINK(TAIL) ← P TAIL ← P 빈 대기열은 HEAD = Λ 이고 TAIL = LOC(HEAD) 로 표현된다 . DELETE 만일 HEAD = Λ 이면 UNDERFLOW 그렇지 않으면 , P ← HEAD HEAD ← LINK(P) Y ← INFO(P) AVAIL P 그리고 HEAD = Λ 이 될 경우 R ← LOC(HEAD)