SlideShare a Scribd company logo
1 of 18
위상 정렬
W6-자료구조와 알고리즘, 언어론
어떤 일을 하는 순서를 찾는 알고리즘
방향 그래프에 존재하는 각 정점들의 선행 순서를 위배하지 않으면서 모든 정점 나열
방법
1. 진입 차수가 0인 정점에서 시작
2. 선택된 정점과 연결되 있는 모든 간선 삭제
3. 반복
재료
준비
떡
넣기
어묵
넣기
양념장
만들기
물
끓기
떡볶이
완성
큐 Queue
순서
재료
준비
떡
넣기
어묵
넣기
양념장
만들기
물
끓기
떡볶이
완성
재료 준비
큐 Queue
순서
떡
넣기
어묵
넣기
양념장
만들기
물
끓기
떡볶이
완성
재료준비
큐 Queue
순서
떡
넣기
어묵
넣기
양념장
만들기
물
끓기
떡볶이
완성
재료준비
양-만 물 끓기
큐 Queue
순서
떡
넣기
어묵
넣기
물
끓기
떡볶이
완성
재료준비 양-만
물 끓기 떡 넣기
큐 Queue
순서
떡
넣기
어묵
넣기
떡볶이
완성
재료준비 양-만 물 끓기
떡 넣기
큐 Queue
순서
어묵
넣기
떡볶이
완성
재료준비 양-만 물 끓기 떡 넣기
어묵 넣기
큐 Queue
순서
떡볶이
완성
재료준비 양-만 물 끓기 떡 넣기 어묵 넣기
떡-완
순서 재료 준비 양-만 물 끓기 떡 넣기 어묵 넣기 떡-완
위상 정렬의
특징도 알아보장
특징
싸이클 X -> 시작 정점을 찾을 수 없음
재료
준비
떡
넣기
어묵
넣기
양-만
물
끓기
떡-완
특징
• 하나의 방향 그래프로 여러 유형의 위상 정렬 가능
• 정렬 중 진입 차수가 0인 정점이 없다면 중단
블록체인
사용자가 많을 수록 빠르다.
-> DAG 알고리즘을 적용하면 블록이 없기 때문에 승인을 기다릴 필요가 없다.
-> 검증 과정이 병렬적으로 이루어져 빨라짐
수수료가 없다
-> 블록의 개념이 없어서 DAG 방식은 수수료가 발생하지 않음
확장성 문제가 없다
-> 사용량이 많아질수록 검증할 것이 많아져 검증의 신뢰도와 속도가 증가

More Related Content

Featured

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
ThinkNow
 
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
Kurio // The Social Media Age(ncy)
 

Featured (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

W6 dag